about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-06-19Check MSRV before suggesting applying `const` to a functionSamuel Tardieu-1/+199
If a function environment contains trait bounds other than `Sized`, `const` cannot be used before Rust 1.61.
2025-06-19isolated_alloc: directly use mmap for allocationsNia Espera-36/+72
Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> address review Apply suggestions from code review Co-authored-by: Ralf Jung <post@ralfj.de> fix comment fix position thing dumb mistake Apply suggestions from code review Co-authored-by: Ralf Jung <post@ralfj.de>
2025-06-19Remove old format_args diagnostic.Mara Bos-27/+11
2025-06-19atomic tests: remove static mutMarijn Schouten-17/+13
2025-06-19Use expr_ref.Mara Bos-2/+1
2025-06-19correct template for `#[align]`Folkert de Vries-34/+36
it should not suggest just `#[align]`
2025-06-19vec_deque alloctests: remove static mutMarijn Schouten-101/+18
2025-06-19vec tests: remove static mutMarijn Schouten-92/+53
2025-06-19Prepare to split `clippy_lints` (#14684)Alex Macleod-431/+480
Based on rust-lang/rust-clippy#14633 The end goal here is to split `clippy_lints` into several independent crates and have the driver call out to each of them to register lints. `clippy_lints` takes way too long to compile right now. r? @flip1995 changelog: none
2025-06-19Update compiler/rustc_interface/src/passes.rsCamille Gillot-1/+1
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
2025-06-19Adjust `with_generic_param_rib`.Nicholas Nethercote-119/+77
Currently all of its call sites construct a `LifetimeRibKind::Generics` value, which `with_generic_param_rib` then deconstructs (and panics if it's a different `LifetimeRibKind` variant). This commit makes the code simpler and shorter: the call sites just pass in the three values and `with_generic_param_rib` constructs the `LifetimeRibKind::Generics` value from them.
2025-06-19Auto merge of #142245 - marcoieni:split-gnu-tools, r=Kobzolbors-56/+125
ci: split x86_64-gnu-tools job try-job: x86_64-gnu-tools try-job: x86_64-gnu-miri try-job: aarch64-gnu
2025-06-19add comment to `src/bootstrap/build.rs`Deadbeef-0/+1
2025-06-19`Option`s are `Iterator`sYotam Ofek-11/+4
2025-06-19avoid intermediately collecting into vectorsYotam Ofek-8/+4
2025-06-19one less pathbuf allocationYotam Ofek-2/+2
2025-06-19completely deduplicate `Visitor` and `MutVisitor`Deadbeef-676/+465
2025-06-19Rustup to rustc 1.89.0-nightly (c68340350 2025-06-18)bjorn3-1/+1
2025-06-19Sync from rust c68340350c78eea402c4a85f8d9c1b7d3d607635bjorn3-42/+64
2025-06-19Merge pull request #4396 from Stypox/build-with-featuresRalf Jung-65/+153
Allow building Miri with --features from miri-script
2025-06-19Doc: clarify priority of lint level sourcesHamidreza Sanaee-1/+102
This updates the rustc book to clearly document how conflicting lint configurations are resolved across different sources, including command-line flags, crate-level attributes, in-line attributes, and `--cap-lints`. It also explains the special behavior of `forbid` and `force_warn`.
2025-06-19Allow building Miri with --features from miri-scriptStypox-65/+153
Otherwise there was no way to pass e.g. `--features tracing` just to the `cargo` commands issued on the root repository: CARGO_EXTRA_FLAGS applies the flags to the "cargo-miri" crate, too, which does not make sense for crate-specific features. Fix install_to_sysroot doing path concatenation twice. Since the second concatenation was against an absolute path, it didn't do anything. This also makes the interface of install_to_sysroot() similar to that of cargo_cmd(). Implement --features for clippy, also fix not passing features to one of the cargo invocations for test
2025-06-19Do not include NUL-terminator in computed lengthAlice Ryhl-20/+27
2025-06-19Merge pull request #20042 from Veykril/push-uosxynulorznLukas Wirth-3/+3
fix: Temporarily disable `+` typing handler as it moves the cursor position
2025-06-19fix: Temporarily disable `+` typing handler as it moves the cursor positionLukas Wirth-3/+3
2025-06-19Auto merge of #139244 - jieyouxu:exp/auto-cross-run-make, r=Kobzolbors-112/+206
Enable automatic cross-compilation in run-make tests Supersedes rust-lang/rust#138066. Blocker for rust-lang/rust#141856. Based on rust-lang/rust#138066 plus `rustdoc()` cross-compile changes. ### Summary This PR automatically specifies `--target` to `rustc()` and `rustdoc()` to have `rustc`/`rustdoc` produce cross-compiled artifacts in run-make tests by default, unless: - `//@ ignore-cross-compile` is used, or - `bare_{rustc,rustdoc}` are used, or - Explicit `.target()` is specified, which overrides the default cross-compile target. Some tests are necessarily modified: - Tests that have `.target(target())` have that incantation removed (since this is now automatically the default). - Some tests have `//@ needs-target-std`, but are a necessary-but-insufficient condition, and are changed to `//@ ignore-cross-compile` instead as host-only tests. - A few tests received `//@ ignore-musl` that fail against `x86_64-unknown-linux-musl` because of inability to find `-lunwind`. AFAICT, they don't *need* to test cross-compiled artifacts. - Some tests are constrained to host-only for now, because the effort to make them pass on cross-compile does not seem worth the complexity, and it's not really *meaningfully* improving test coverage. try-job: dist-various-1
2025-06-19Merge pull request #20041 from Veykril/push-yxlszoznuynoLukas Wirth-39/+19
Revert "Turn `BlockId` into a `#[salsa::tracked]`"
2025-06-19remove `walk_item_kind` from `MutVisitor`Deadbeef-49/+3
just using `walk_item` instead would be okay.
2025-06-19Revert "Turn `BlockId` into a `#[salsa::tracked]`"Lukas Wirth-39/+19
This reverts commit 8643a858dbaf12b37e90b603cdee64434576c229.
2025-06-19Merge pull request #4407 from rust-lang/rustup-2025-06-19Ralf Jung-12907/+15118
Automatic Rustup
2025-06-19Remove incorrect comments in `Weak`Tim (Theemathas) Chirananthavat-2/+0
It is currently possible to create a dangling `Weak` to a DST by calling `Weak::new()` for a sized type, then doing an unsized coercion. Therefore, the comments are wrong. These comments were added in <https://github.com/rust-lang/rust/pull/73845>. As far as I can tell, the guarantee in the comment was only previously used in the `as_ptr` method. However, the current implementation of `as_ptr` no longer relies on this guarantee.
2025-06-19Merge from rustcThe Miri Cronjob Bot-12906/+15117
2025-06-19Clarify arrow in snapshot testsJakub Beránek-0/+4
2025-06-19Normalize host target in snapshot testsJakub Beránek-17/+74
2025-06-19Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-19Add `get_host_target` functionJakub Beránek-2/+7
2025-06-19Merge pull request #20039 from ShoyuVanilla/let-bind-ref-captLukas Wirth-1/+43
fix: Closure capturing for let exprs
2025-06-19Cache instantiation of canonical binderMichael Goulet-20/+177
2025-06-19Merge from rustcThe rustc-dev-guide Cronjob Bot-28451/+45536
2025-06-19Preparing for merge from rustcThe rustc-dev-guide Cronjob Bot-1/+1
2025-06-19Auto merge of #142697 - tgross35:rollup-xu4yuq6, r=tgross35bors-655/+1097
Rollup of 7 pull requests Successful merges: - rust-lang/rust#140247 (Don't build `ParamEnv` and do trait solving in `ItemCtxt`s when lowering IATs) - rust-lang/rust#142507 (use `#[align]` attribute for `fn_align`) - rust-lang/rust#142524 (Weekly `cargo update`) - rust-lang/rust#142606 (AsyncDrop trait without sync Drop generates an error) - rust-lang/rust#142639 (Add a missing colon at the end of the panic location details in location-detail-unwrap-multiline.rs) - rust-lang/rust#142654 (library: Increase timeout on mpmc test to reduce flakes) - rust-lang/rust#142692 (Assorted bootstrap cleanups (step 3)) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-19Update booksrustbot-0/+0
2025-06-18Prepare to split lints into multiple cratesJason Newcomb-431/+480
* Move `declare_clippy_lint` to it's own crate * Move lint/group registration into the driver * Make `dev update_lints` handle multiple lint crates
2025-06-19various minor target feature cleanupsRalf Jung-2/+1
2025-06-19various minor target feature cleanupsRalf Jung-54/+38
2025-06-18Add a test for `concat_bytes!` with C stringsTrevor Gross-29/+83
Also ensure the suggestions are checked, since this will be updated.
2025-06-19line-wrap and extend comments, typosRalf Jung-14/+22
2025-06-19cg_gcc: properly populate cfg(target_features) with -Ctarget-featuresRalf Jung-22/+17
2025-06-19cg_gcc: properly populate cfg(target_features) with -Ctarget-featuresRalf Jung-47/+37
2025-06-19unify two -Ctarget-feature parsersRalf Jung-121/+170
This does change the logic a bit: previously, we didn't forward reverse implications of negated features to the backend, instead relying on the backend to handle the implication itself.