about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-11-11stacked borrows tests: add those that fail under TBRalf Jung-2/+38
2024-11-11move `src/tools/build_helper` into `src/build_helper`onur-ozkan-664/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-11-11typoRalf Jung-3/+3
2024-11-11sync support: dont implicitly clone inside the general sync machineryRalf Jung-38/+64
2024-11-11Merge pull request #18482 from regexident/hir_trait_supertraits_accessorsLaurențiu Nicola-6/+26
internal: Add public `direct_supertraits(…)` & `all_supertraits(…)` accessor methods to `hir::Trait`
2024-11-11Merge pull request #4002 from tiif/leakythreadRalf Jung-86/+109
Remove MutexID list
2024-11-10refactor flagsHenry Jiang-11/+9
2024-11-11Auto merge of #126597 - estebank:unicode-output, r=fmeasebors-28/+28
Add Unicode block-drawing compiler output support Add nightly-only theming support to rustc output using Unicode box drawing characters instead of ASCII-art to draw the terminal UI. In order to enable, the flags `-Zunstable-options=yes --error-format=human-unicode` must be passed in. After: ``` error: foo ╭▸ test.rs:3:3 │ 3 │ X0 Y0 Z0 │ ┌───╿──│──┘ │ ┌│───│──┘ │ ┏││━━━┙ │ ┃││ 4 │ ┃││ X1 Y1 Z1 5 │ ┃││ X2 Y2 Z2 │ ┃│└────╿──│──┘ `Z` label │ ┃└─────│──┤ │ ┗━━━━━━┥ `Y` is a good letter too │ `X` is a good letter ╰╴ note: bar ╭▸ test.rs:4:3 │ 4 │ ┏ X1 Y1 Z1 5 │ ┃ X2 Y2 Z2 6 │ ┃ X3 Y3 Z3 │ ┗━━━━━━━━━━┛ ├ note: bar ╰ note: baz note: qux ╭▸ test.rs:4:3 │ 4 │ X1 Y1 Z1 ╰╴ ━━━━━━━━ ``` Before: ``` error: foo --> test.rs:3:3 | 3 | X0 Y0 Z0 | ___^__-__- | |___|__| | ||___| | ||| 4 | ||| X1 Y1 Z1 5 | ||| X2 Y2 Z2 | |||____^__-__- `Z` label | ||_____|__| | |______| `Y` is a good letter too | `X` is a good letter | note: bar --> test.rs:4:3 | 4 | / X1 Y1 Z1 5 | | X2 Y2 Z2 6 | | X3 Y3 Z3 | |__________^ = note: bar = note: baz note: qux --> test.rs:4:3 | 4 | X1 Y1 Z1 | ^^^^^^^^ ``` After: ![rustc output with unicode box drawing characters](https://github.com/rust-lang/rust/assets/1606434/d210b79a-6579-4407-9706-ba8edc6e9f25) Before: ![current rustc output with ASCII art](https://github.com/rust-lang/rust/assets/1606434/5aecccf8-a6ee-4469-8b39-72fb0d979a9f)
2024-11-10Add Unicode block-drawing compiler output supportEsteban Küber-28/+28
Add nightly-only theming support to rustc output using Unicode box drawing characters instead of ASCII-art to draw the terminal UI: After: ``` error: foo ╭▸ test.rs:3:3 │ 3 │ X0 Y0 Z0 │ ┌───╿──│──┘ │ ┌│───│──┘ │ ┏││━━━┙ │ ┃││ 4 │ ┃││ X1 Y1 Z1 5 │ ┃││ X2 Y2 Z2 │ ┃│└────╿──│──┘ `Z` label │ ┃└─────│──┤ │ ┗━━━━━━┥ `Y` is a good letter too │ `X` is a good letter ╰╴ note: bar ╭▸ test.rs:4:3 │ 4 │ ┏ X1 Y1 Z1 5 │ ┃ X2 Y2 Z2 6 │ ┃ X3 Y3 Z3 │ ┗━━━━━━━━━━┛ ├ note: bar ╰ note: baz note: qux ╭▸ test.rs:4:3 │ 4 │ X1 Y1 Z1 ╰╴ ━━━━━━━━ ``` Before: ``` error: foo --> test.rs:3:3 | 3 | X0 Y0 Z0 | ___^__-__- | |___|__| | ||___| | ||| 4 | ||| X1 Y1 Z1 5 | ||| X2 Y2 Z2 | |||____^__-__- `Z` label | ||_____|__| | |______| `Y` is a good letter too | `X` is a good letter | note: bar --> test.rs:4:3 | 4 | / X1 Y1 Z1 5 | | X2 Y2 Z2 6 | | X3 Y3 Z3 | |__________^ = note: bar = note: baz note: qux --> test.rs:4:3 | 4 | X1 Y1 Z1 | ^^^^^^^^ ```
2024-11-11Remove MutexID listtiif-86/+111
2024-11-10Merge pull request #18492 from samestep/docs-dev-no-design-labelLaurențiu Nicola-1/+1
Replace Design label with C-Architecture
2024-11-10Replace with C-ArchitectureSam Estep-0/+4
2024-11-10Preparing for merge from rustcRalf Jung-1/+1
2024-11-10fix linux-futex test being accidentally disabledRalf Jung-3/+2
2024-11-10store futexes in per-allocation data rather than globallyRalf Jung-55/+122
2024-11-10ensure that all publicly reachable const fn have const stability infoRalf Jung-6/+2
2024-11-10Merge from rustcRalf Jung-22/+27
2024-11-10Preparing for merge from rustcRalf Jung-1/+1
2024-11-09Rollup merge of #132801 - RalfJung:alloc-mutability, r=oli-obkJubilee-20/+20
interpret: get_alloc_info: also return mutability This will be needed for https://github.com/rust-lang/miri/pull/3971 This then tuned into a larger refactor where we introduce a new type for the `get_alloc_info` return data, and we move some code to methods on `GlobalAlloc` to avoid duplicating it between the validity check and `get_alloc_info`.
2024-11-10Auto merge of #132829 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 16 commits in 0310497822a7a673a330a5dd068b7aaa579a265e..4a2d8dc636445b276288543882e076f254b3ae95 2024-11-01 19:27:56 +0000 to 2024-11-09 19:10:33 +0000 - test: adjust `cargo_test_env` to unblock rust submodule update (rust-lang/cargo#14803) - feat(warnings): add build.warnings option (rust-lang/cargo#14388) - Revert "feat: Add `CARGO_RUSTC_CURRENT_DIR`" (rust-lang/cargo#14799) - CI: make the `lint-docs` job required (rust-lang/cargo#14797) - Switch CI from bors to merge queue (rust-lang/cargo#14718) - docs(test): Document Execs assertions based on port effort (rust-lang/cargo#14793) - fix(test): Make redactions consistent with snapbox (rust-lang/cargo#14790) - test(gc): Update remaining unordered tests to snapbox (rust-lang/cargo#14785) - Normalize the `target` paths (rust-lang/cargo#14497) - rustfix: replace special-case duplicate handling with error (rust-lang/cargo#14782) - test: Update some emaining unordered tests to snapbox (rust-lang/cargo#14781) - Change config paths to only check CARGO_HOME for cargo-script (rust-lang/cargo#14749) - Enable transfer feature in triagebot (rust-lang/cargo#14777) - Add transactional semantics to `rustfix` (rust-lang/cargo#14747) - doc: fix `GlobalContext` reference (rust-lang/cargo#14773) - chore: update handlebars to v6, fix build error (rust-lang/cargo#14772)
2024-11-09Update cargoWeihang Lo-0/+0
2024-11-09Pass TyCtxt instead of Queries to the after_analysis callbacksbjorn3-44/+38
There is no other query that may need to be called at that point anyway.
2024-11-09Rollup merge of #132754 - Zalathar:opts, r=GuillaumeGomez,jieyouxuMatthias Krüger-0/+1
Simplify the internal API for declaring command-line options The internal APIs for declaring command-line options are old, and intimidatingly complex. This PR replaces them with a single function that takes explicit `stability` and `kind` arguments, making it easier to see how each option is handled, and whether it is treated as stable or unstable. We also don't appear to have any tests for the output of `rustc --help` and similar, so I've added a run-make test to verify that this PR doesn't change any output. (There is already a similar run-make test for rustdoc's help output.) --- The librustdoc changes are simply adjusting to updated compiler APIs; no functional change intended. --- A side-effect of these changes is that rustfmt can once again format the entirety of these option declaration lists, which it was not doing before.
2024-11-09make return type of get_alloc_info a struct, and reduce some code ↵Ralf Jung-20/+20
duplication with validity checking
2024-11-09Merge pull request #4020 from RalfJung/thread-sopeRalf Jung-0/+24
pthread-sync test: use thread::scope for more reliable thread scoping
2024-11-09interpret: get_alloc_info: also return mutabilityRalf Jung-7/+7
2024-11-09pthread-sync: avoid confusing error when running with preemptionRalf Jung-0/+24
2024-11-09Merge from rustcThe Miri Cronjob Bot-1939/+7227
2024-11-09Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-11-08Update mdbook to 0.4.42Eric Huss-4/+21
2024-11-08Auto merge of #132746 - flip1995:clippy-subtree-update, r=Manishearthbors-899/+5023
Clippy subtree update r? `@Manishearth`
2024-11-08Merge pull request #4004 from YohDeadfall/thread-name-ice-fixRalf Jung-109/+192
Get/set thread name shims return errors for invalid handles
2024-11-08Get/set thread name shims return errors for invalid handlesYoh Deadfall-109/+192
2024-11-08Clippy: cfg out validate_diag on release buildsPhilipp Krones-3/+4
2024-11-08remove support for rustc_safe_intrinsic attribute; use rustc_intrinsic ↵Ralf Jung-1/+1
functions instead
2024-11-08editors/code: Match supported debug engines in config with actual supported onesMaster-Hash-3/+7
2024-11-08Merge pull request #18486 from Wilfred/update_minimum_vscodeLaurențiu Nicola-25/+27
editors/code: Change minimum VS Code from 1.78 to 1.83
2024-11-07Rollup merge of #131913 - jieyouxu:only_debug_assertions, r=onur-ozkanJubilee-9/+77
Add `{ignore,needs}-{rustc,std}-debug-assertions` directive support Add `{ignore,needs}-{rustc,std}-debug-assertions` compiletest directives and retire the old `{ignore,only}-debug` directives. The old `{ignore,only}-debug` directives were ambiguous because you could have std built with debug assertions but rustc not built with debug assertions or vice versa. If we want to support the use case of controlling test run based on if rustc was built with debug assertions, then having `{ignore,only}-debug` will be very confusing. cc ````@matthiaskrgr```` Closes #123987. r? bootstrap (or compiler tbh)
2024-11-08Add a run-make test for `rustc --help` and similarZalathar-0/+1
2024-11-07Merge commit 'f712eb5cdccd121d0569af12f20e6a0fabe4364d' into ↵Philipp Krones-900/+5023
clippy-subtree-update
2024-11-07Delete design label from listSam Estep-4/+0
2024-11-07Merge pull request #18490 from ShoyuVanilla/dyn-compat-renameLaurențiu Nicola-8/+9
minor: Rename `dyn compatible` to `dyn-compatible`
2024-11-07minor: Rename `dyn compatible` to `dyn-compatible`Shoyu Vanilla-8/+9
2024-11-07Renamed ecx variales to thisYoh Deadfall-36/+36
2024-11-07Rollup merge of #132057 - RalfJung:miri-abi-compat, r=wesleywiserJonas Böttiger-0/+24
miri: update ABI compat checks to accept Option-like types This implements the t-lang decision described [here](https://github.com/rust-lang/rust/pull/130628#issuecomment-2402761599). Fixes https://github.com/rust-lang/miri/issues/3983
2024-11-06editors/code: Change minimum VS Code from 1.78 to 1.83Wilfred Hughes-25/+27
It's been a year since we last bumped this (see #15904), and VS Code 1.83 is the first version that supports LSP 3.17.5 (via vscode-languageclient 9.0.1). https://code.visualstudio.com/updates/v1_83#_language-server-protocol
2024-11-06feat: convert add_braces to SyntaxFactory SyntaxEditor abstractionDavid Kurilla-3/+10
2024-11-06Add `direct_supertraits(…)` HIR-level method to `hir::Trait` typeVincent Esche-1/+6
2024-11-06Add `pub fn direct_super_traits(db, trait_id)` to `hir_ty` crateVincent Esche-3/+14
2024-11-06Refactor `hir::Trait`'s existing `items_with_supertraits(…)` method based ↵Vincent Esche-2/+1
on new `all_supertraits(…)` method