about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-06-27rustc_codegen_gcc: Fix clippy::manual_is_multiple_ofPhilipp Krones-2/+3
2025-06-27rustc_codegen_gcc: Fix clippy::manual_is_multiple_ofPhilipp Krones-2/+3
2025-06-27Update poison.rs to fix the typo (sys->sync)Kurt Heiritz (pseudo)-1/+1
2025-06-27update internal `send_signal` commentDeadbeef-4/+4
2025-06-27Use `.is_multiple_of()` in bootstrapSamuel Tardieu-1/+3
This makes the intent clear, and silences Clippy.
2025-06-27broken_links: Fix rustdoc API usagePhilipp Krones-1/+1
2025-06-27broken_links: Fix rustdoc API usagePhilipp Krones-1/+1
2025-06-27Update Cargo.lockPhilipp Krones-4/+10
2025-06-27Merge commit 'c5dbd1de07e0407b9687619a868384d6de06253f' into ↵Philipp Krones-843/+3158
clippy-subtree-update
2025-06-27Merge commit 'c5dbd1de07e0407b9687619a868384d6de06253f' into ↵Philipp Krones-843/+3158
clippy-subtree-update
2025-06-27Workaround missing none group support in builtin macrosLukas Wirth-40/+22
2025-06-27Generate symbols.o for proc-macros toobjorn3-2/+32
To ensure used statics are functioning correctly for proc-macros too.
2025-06-27Add InterpCx::layout_of with tracing, shadowing LayoutOfStypox-32/+30
2025-06-27Update commentsbjorn3-5/+8
2025-06-27use placeholder_snippetHayashi Mikihiro-15/+46
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-27use name_generatorHayashi Mikihiro-6/+21
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-06-27Fix typoxizheyin-11/+11
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-06-27Insert checks for enum discriminants when debug assertions are enabledBastian Kersting-3/+909
Similar to the existing nullpointer and alignment checks, this checks for valid enum discriminants on creation of enums through unsafe transmutes. Essentially this sanitizes patterns like the following: ```rust let val: MyEnum = unsafe { std::mem::transmute<u32, MyEnum>(42) }; ``` An extension of this check will be done in a follow-up that explicitly sanitizes for extern enum values that come into Rust from e.g. C/C++. This check is similar to Miri's capabilities of checking for valid construction of enum values. This PR is inspired by saethlin@'s PR https://github.com/rust-lang/rust/pull/104862. Thank you so much for keeping this code up and the detailed comments! I also pair-programmed large parts of this together with vabr-g@.
2025-06-27Split exported_symbols for generic and non-generic symbolsbjorn3-37/+86
This reduces metadata decoder overhead during the monomorphization collector.
2025-06-27Add tracing for instantiate_from_frame_and_normalize_erasing_regionsStypox-1/+7
2025-06-27Add tracing to validate_operandStypox-0/+7
2025-06-27Report infer ty errors during hir ty loweringOli Scherer-709/+414
This centralizes the placeholder type error reporting in one location, but it also exposes the granularity at which we convert things from hir to ty more. E.g. previously infer types in where bounds were errored together with the function signature, but now they are independent.
2025-06-27Port `#[rustc_layout_scalar_valid_range_start/end]` to the new attribute ↵Jonathan Brouwer-69/+146
parsing infrastructure Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-27Auto merge of #142816 - ↵bors-283/+393
Shourya742:2025-06-21-add-caching-layer-to-bootstrap, r=Kobzol Add caching layer to bootstrap This PR adds a caching layer to the bootstrap command execution context. It is still a work in progress but introduces the initial infrastructure for it. r? `@Kobzol`
2025-06-27Port `#[used]` to new attribute parsing infrastructureJonathan Brouwer-124/+185
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-27codegen_fn_attrs: make comment more preciseRalf Jung-1/+3
2025-06-27Merge pull request #20110 from ChayimFriedman2/ambiguous-floatLukas Wirth-1/+50
fix: Fix completion in when typing `integer.|`
2025-06-27tests: add #![rustc_no_implicit_bounds]David Wood-89/+109
After reviewing all tests with `?Sized` and discussing with lcnr, these tests seem like they could probably benefit from `#![rustc_no_implicit_bounds]`.
2025-06-27disable caching for cargo commandsbit-aloo-3/+6
2025-06-27move execution context inside exec and prune execution context, use command ↵bit-aloo-353/+345
directly from bootstrap command inside start, and not via as_command_mut
2025-06-27make DeferredCommand a must use and move mark_as_executed inside finish processbit-aloo-1/+4
2025-06-27add caching info on bootstrap commandbit-aloo-6/+4
2025-06-27refactor deferred command and make it compatible with new commandstate, ↵bit-aloo-90/+100
remove extra caching logic from run and re-structure the changes
2025-06-27add new command state in execution contextbit-aloo-0/+11
2025-06-27add do_not_cache method and update the warning on as_command_mutbit-aloo-3/+9
2025-06-27use metadata for command cache key spawning directly from commandbit-aloo-20/+25
2025-06-27add command cache key, move to osstring, add should cache to bootstrap commandbit-aloo-19/+76
2025-06-27add caching fields inside Bootstrap commandbit-aloo-1/+26
2025-06-27testsbendn-0/+64
2025-06-27Auto merge of #142223 - compiler-errors:perf-wf, r=lcnrbors-3/+94
Fast path for WF goals in new solver Hopefully self-explanatory.
2025-06-27Auto merge of #143074 - compiler-errors:rollup-cv64hdh, r=compiler-errorsbors-907/+1240
Rollup of 18 pull requests Successful merges: - rust-lang/rust#137843 (make RefCell unstably const) - rust-lang/rust#140942 (const-eval: allow constants to refer to mutable/external memory, but reject such constants as patterns) - rust-lang/rust#142549 (small iter.intersperse.fold() optimization) - rust-lang/rust#142637 (Remove some glob imports from the type system) - rust-lang/rust#142647 ([perf] Compute hard errors without diagnostics in impl_intersection_has_impossible_obligation) - rust-lang/rust#142700 (Remove incorrect comments in `Weak`) - rust-lang/rust#142927 (Add note to `find_const_ty_from_env`) - rust-lang/rust#142967 (Fix RwLock::try_write documentation for WouldBlock condition) - rust-lang/rust#142986 (Port `#[export_name]` to the new attribute parsing infrastructure) - rust-lang/rust#143001 (Rename run always ) - rust-lang/rust#143010 (Update `browser-ui-test` version to `0.20.7`) - rust-lang/rust#143015 (Add `sym::macro_pin` diagnostic item for `core::pin::pin!()`) - rust-lang/rust#143033 (Expand const-stabilized API links in relnotes) - rust-lang/rust#143041 (Remove cache for citool) - rust-lang/rust#143056 (Move an ACE test out of the GCI directory) - rust-lang/rust#143059 (Fix 1.88 relnotes) - rust-lang/rust#143067 (Tracking issue number for `iter_macro`) - rust-lang/rust#143073 (Fix some fixmes that were waiting for let chains) Failed merges: - rust-lang/rust#143020 (codegen_fn_attrs: make comment more precise) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-26Rollup merge of #143073 - yotamofek:pr/fix-let-chains-fixmes, r=compiler-errorsMichael Goulet-12/+11
Fix some fixmes that were waiting for let chains Was inspired by looking at rust-lang/rust#143066 and spotting two fixmes that were missed, so... r? `@compiler-errors` 😅 Yay, let chains!
2025-06-26Rollup merge of #143067 - GrigorenkoPV:142269, r=workingjubileeMichael Goulet-3/+3
Tracking issue number for `iter_macro` Tracking issue: rust-lang/rust#142269
2025-06-26Rollup merge of #143059 - jieyouxu:slice-as-chunks, r=cuviperMichael Goulet-2/+10
Fix 1.88 relnotes - Use stable std links for `impl Default for {*const,*mut} T` - Add missing relnotes for https://github.com/rust-lang/rust/pull/139656 ```rs impl [T] { const fn as_chunks<const N: usize>(&self) -> (&[[T; N]], &[T]); const fn as_rchunks<const N: usize>(&self) -> (&[T], &[[T; N]]); const unsafe fn as_chunks_unchecked<const N: usize>(&self) -> &[[T; N]]; const fn as_chunks_mut<const N: usize>(&mut self) -> (&mut [[T; N]], &mut [T]); const fn as_rchunks_mut<const N: usize>(&mut self) -> (&mut [T], &mut [[T; N]]); const unsafe fn as_chunks_unchecked_mut<const N: usize>(&mut self) -> &mut [[T; N]]; } ``` - Add missing `mod ffi::c_str` and `hint::select_unpredictable` r? `@cuviper`
2025-06-26Rollup merge of #143056 - fmease:mv-ace-test-out-of-gci-dir, r=BoxyUwUMichael Goulet-35/+17
Move an ACE test out of the GCI directory In https://github.com/rust-lang/rust/pull/122988, a test pertaining to `associated_const_equality` was placed into the directory meant for `generic_const_items`. Let's move it where it belongs. While at it, I took the time to further minimize the test and to add a description. You can use 1.67.1 (as reported in rust-lang/rust#108220) to verify that I didn't butcher it. For additional context, the issue was likely fixed in rust-lang/rust#112718 (but I'm also cc'ing rust-lang/rust#140467 which further fixed things up and has more context). I only performed quick and dirty git/GitHub archeology, so I don't have the full picture here. For one, I'm not even sure if this regression test is worth it. Anyway, I just want it gone from the GCI dir :)
2025-06-26Rollup merge of #143041 - Kobzol:matrix-no-cache, r=marcoieniMichael Goulet-11/+0
Remove cache for citool I'm not sure why, but after the citool cache is loaded, compiling just build_helper and citool takes ~30s, which is very slow. Combined with the fact that just loading the cache takes ~15s, and we have to run a hacky workflow on master, which results [in benign failures](https://github.com/rust-lang/rust/actions?query=branch%3Amaster), I don't think it's worth it to use the cache here anymore. A fresh build, now that we don't run citool tests on PR CI, takes just ~35-40s, so it's actually faster now *not* to cache. The trade-offs change quite often :) r? ``@ghost``
2025-06-26Rollup merge of #143033 - jieyouxu:expand-apis, r=cuviperMichael Goulet-2/+6
Expand const-stabilized API links in relnotes Noticed while looking at the relnotes blog post https://github.com/rust-lang/blog.rust-lang.org/pull/1651#discussion_r2165569631. r? ````@cuviper````
2025-06-26Rollup merge of #143015 - samueltardieu:pin-macro-diag-item, r=UrgauMichael Goulet-0/+2
Add `sym::macro_pin` diagnostic item for `core::pin::pin!()`
2025-06-26Rollup merge of #143010 - GuillaumeGomez:update-browser-ui-test, r=KobzolMichael Goulet-1/+1
Update `browser-ui-test` version to `0.20.7` This new version fixes some bugs and improve error messages. r? `````@Kobzol`````
2025-06-26Rollup merge of #143001 - Shourya742:2025-06-25-rename-run-always, r=KobzolMichael Goulet-24/+27
Rename run always This PR renames run_always to run_to_dry_run for better clarity, making the field's purpose more explicit and avoiding confusion with command caching behavior. r? ``````@Kobzol``````