about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-10-22Auto merge of #117007 - notriddle:notriddle/format-links-with-display, r=fmeasebors-26/+51
rustdoc: avoid allocating strings primitive link printing This is aimed at hitting the allocator less in a function that gets called a lot.
2023-10-22Update rustc-perf versionJakub Beránek-4/+4
2023-10-22chore: bump toolchain and apply minor updatesCaleb Cartwright-34/+3
2023-10-22Merge remote-tracking branch 'upstream/master' into subtree-sync-2023-10-22Caleb Cartwright-504/+725
2023-10-22Auto merge of #3134 - RalfJung:log-not-lin, r=saethlinbors-4/+9
avoid a linear scan over the entire int_to_ptr_map on each deallocation
2023-10-22Auto merge of #117018 - Kobzol:opt-dist-cargo-stage0, r=lqdbors-6/+3
Use beta cargo in opt-dist Using the new stage2 cargo caused issues when a backwards-incompatible change was made to cargo. This means that we won't be testing the LTO/1-CGU optimized cargo, but I don't think that's a big issue, as we primarily want to test the compiler. Should fix [this](https://github.com/rust-lang/rust/pull/117000#issuecomment-1773639109) failure.
2023-10-22tidy docsdirreke-3/+3
2023-10-22use visibility to check unused imports and delete some stmtsbohan-3/+6
2023-10-22add target csky-unknown-linux-gnuabiv2hfdirreke-3/+15
2023-10-22Enable cg_clif tests for riscv64gcbjorn3-1/+4
2023-10-22Pass host triple when running tests in `opt-dist`Jakub Beránek-0/+2
2023-10-22Use beta cargo in opt-distJakub Beránek-6/+1
Using the new cargo caused issues when a backwards-incompatible change was made to cargo.
2023-10-22Auto merge of #117041 - matthiaskrgr:rollup-b18h0ln, r=matthiaskrgrbors-150/+159
Rollup of 4 pull requests Successful merges: - #116985 (Use gdb.ValuePrinter tag class) - #116989 (Skip test if Unix sockets are unsupported) - #117034 (Don't crash on empty match in the `nonexhaustive_omitted_patterns` lint) - #117037 (rustdoc book doc example error) r? `@ghost` `@rustbot` modify labels: rollup
2023-10-22add bootstrap flag `--skip-stage0-validation`onur-ozkan-16/+66
This change introduces the --skip-stage0-validation flag, which permits the use of any desired version of the stage0 compiler without verifying its version. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-22re-enable stage0 compiler version checkonur-ozkan-2/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-10-22Auto merge of #3135 - RalfJung:nonatomic-clock, r=RalfJungbors-7/+7
avoid AtomicU64 when a Cell is enough
2023-10-22Rollup merge of #117037 - csditchfield:fix_doc_writing_result_example, ↵Matthias Krüger-1/+1
r=notriddle rustdoc book doc example error closes #117036 This is the minimal change required to make the second what-to-include.md example valid. Another more modern solution could be considered: ``` /// Example /// ```rust /// let fortytwo = "42".parse::<u32>()?; /// println!("{} + 10 = {}", fortytwo, fortytwo+10); /// # Ok::<(), <u32 as std::str::FromStr>::Err>(()) /// ``` ```
2023-10-22Rollup merge of #116985 - tromey:rust-printers-14, r=Mark-SimulacrumMatthias Krüger-149/+158
Use gdb.ValuePrinter tag class GDB 14 has a "gdb.ValuePrinter" tag class that was introduced to let GDB evolve the pretty-printer API. Users of this tag are required to hide any local attributes or methods. This patch makes this change to the Rust pretty-printers. At present this is just a cleanup, providing the basis for any future changes.
2023-10-22avoid AtomicU64 when a Cell is enoughRalf Jung-7/+7
2023-10-22clippyRalf Jung-1/+1
2023-10-22avoid a linear scan over the entire int_to_ptr_map on each deallocationRalf Jung-4/+9
2023-10-22Auto merge of #116950 - cuviper:ci-llvm-17, r=Mark-Simulacrumbors-0/+59
ci: add a runner for vanilla LLVM 17 For CI cost, this can be seen as replacing the llvm-14 runner we dropped in #114148. Also, I've set `IS_NOT_LATEST_LLVM` in the llvm-16 runner, since that's not the latest anymore.
2023-10-22Merge from rustcThe Miri Conjob Bot-888/+2385
2023-10-22Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-10-22Auto merge of #116932 - Kobzol:fix-stage1-tests, r=Mark-Simulacrumbors-28/+28
Fix x86_64-gnu-llvm-15 CI tests The CI script was broken - if there was a test failure in the first command chain (inside the `if`), CI would not report the failure. It happened because there were two command chains separated by `&&` in the script, and since `set -e` doesn't exit for chained commands, if the first chain has failed, the script would happily continue forward, ignoring any test failures. This could be fixed e.g. by adding some `|| exit 1` to the first chain, but I suppose that the `&&` chaining is unnecessary here anyway. Reported [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/test.20failure.20didn't.20stop.20CI). Fixes: https://github.com/rust-lang/rust/issues/116867
2023-10-21fix what-to-include doc exampleCameron Ditchfield-1/+1
Fixes the second example in the Examples section of what-to-include.md by marking main as a function.
2023-10-21Auto merge of #117030 - matthiaskrgr:rollup-vdjfx4q, r=matthiaskrgrbors-1/+1
Rollup of 7 pull requests Successful merges: - #116312 (Initiate the inner usage of `cfg_match` (Compiler)) - #116928 (fix bootstrap paths in triagebot.toml) - #116955 (Updated README with expandable table of content.) - #116981 (update the registers of csky target) - #116992 (Mention the syntax for `use` on `mod foo;` if `foo` doesn't exist) - #117026 (Fix broken link to Ayu theme in the rustdoc book) - #117028 (Remove unnecessary `all` in Box) r? `@ghost` `@rustbot` modify labels: rollup
2023-10-21Auto merge of #116368 - shepmaster:github-actions-m1, r=Mark-Simulacrumbors-14/+40
Use GitHub Actions M1 builder for aarch64-apple-darwin r? `@ghost`
2023-10-21fix broken link to ayu theme in the rustdoc bookRyan Mehri-1/+1
2023-10-21rustdoc: avoid allocating strings primitive link printingMichael Howell-26/+51
This is aimed at hitting the allocator less in a function that gets called a lot.
2023-10-21Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyupPhilipp Krones-3/+3
2023-10-21Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyupPhilipp Krones-845/+2316
2023-10-21Merge from rustcThe Miri Conjob Bot-398/+398
2023-10-21Preparing for merge from rustcThe Miri Conjob Bot-1/+1
2023-10-20Update cargoWeihang Lo-0/+0
2023-10-20Replace all uses of `generator` in markdown documentation with `coroutine`Oli Scherer-11/+11
2023-10-20bless miriOli Scherer-8/+8
2023-10-20Rename lots of files that had `generator` in their nameOli Scherer-0/+0
2023-10-20s/generator/coroutine/Oli Scherer-307/+307
2023-10-20s/Generator/Coroutine/Oli Scherer-54/+54
2023-10-20Use gdb.ValuePrinter tag classTom Tromey-149/+158
GDB 14 has a "gdb.ValuePrinter" tag class that was introduced to let GDB evolve the pretty-printer API. Users of this tag are required to hide any local attributes or methods. This patch makes this change to the Rust pretty-printers. At present this is just a cleanup, providing the basis for any future changes.
2023-10-20Rewrite gdb pretty-printer registrationTom Tromey-55/+78
Currently, the Rust pretty-printers are registered in gdb using the uninformative name "lookup": (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] lookup It's nicer for users if the top-level registration is given a clear name. Additionally, gdb lets users individually enable and disable specific printers, provided they are registered correctly. This patch implements both these ideas. Now the output looks like: (gdb) info pretty-printer global pretty-printers: [...] objfile /home/tromey/[...] rust StdArc StdBTreeMap StdBTreeSet StdCell StdHashMap StdHashSet StdNonZeroNumber StdOsString StdRc StdRef StdRefCell StdRefMut StdSlice StdStr StdString StdVec StdVecDeque
2023-10-20Avoid a `track_errors` by bubbling up most errors from `check_well_formed`Oli Scherer-12/+2
2023-10-20ignore deny lints in joshRalf Jung-1/+1
2023-10-20Merge from rustcRalf Jung-53/+73
2023-10-20Preparing for merge from rustcRalf Jung-1/+1
2023-10-19clarify commentRalf Jung-3/+7
2023-10-19remove allocations from int_to_ptr_map and exposed when they get freedRalf Jung-16/+35
2023-10-19switch intptrcast to helper trait pattern like everything elseRalf Jung-88/+87
2023-10-19intptrcast: only find strictly in-bounds pointers when we are not hitting ↵Ralf Jung-2/+5
the base address