Rollup of 23 pull requests#157827
Closed
JonathanBrouwer wants to merge 63 commits into
Closed
Conversation
``` error[E0061]: this method takes 0 arguments but 1 argument was supplied --> $DIR/shadowed-intrinsic-method.rs:18:7 | LL | a.borrow(()); | ^^^^^^ -- unexpected argument of type `()` | note: the `borrow` call is resolved to the method in `std::borrow::Borrow`, shadowing the method of the same name on the inherent impl for `A` --> $DIR/shadowed-intrinsic-method.rs:18:7 | LL | use std::borrow::Borrow; | ------------------- `std::borrow::Borrow` imported here ... LL | a.borrow(()); | ^^^^^^ refers to `std::borrow::Borrow::borrow` note: method defined here --> $SRC_DIR/core/src/borrow.rs:LL:COL help: you might have meant to call the other method; you can use the fully-qualified path to call it explicitly | LL - a.borrow(()); LL + A::borrow(&mut a, ()); | help: remove the extra argument | LL - a.borrow(()); LL + a.borrow(); | ```
Handle correct gramar in the face of a single other option, or many.
Update the target spec & relevant documentation for aarch64-unknown-freebsd to reflect it being promoted to Tier 2. Implements MCP: rust-lang/compiler-team#961 Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
`-Zremap-cwd-prefix=<to>` was applied inside `parse_remap_path_prefix`, which resolved `std::env::current_dir()` and pushed `(cwd, to)` onto `remap_path_prefix`. That option is `[TRACKED_NO_CRATE_HASH]`, so the absolute working directory entered the incremental command-line-args hash, and building the same sources from a different directory (e.g. a Bazel sandbox, whose path contains a per-action counter) purged the whole incremental cache even though the remapped output is identical. `--remap-path-prefix` and `-Zremap-cwd-prefix` already have separate options (`remap_path_prefix` and `remap_cwd_prefix`). Keep each option holding exactly its own flag, and apply `-Zremap-cwd-prefix` in `file_path_mapping` -- i.e. when building the (untracked) applied `FilePathMapping` -- rather than when parsing/tracking options. The absolute cwd then lives only in the runtime mapping, never in a tracked field. Output is unchanged (the cwd entry is still appended last). Tracking stays sound: the cwd's effect is tracked via `remap_cwd_prefix` (the target prefix baked into output) and `working_dir` (whose `RealFileName` hash includes the real path only when it was not fully remapped, i.e. exactly when the cwd can leak into output). The stable `--remap-path-prefix` flag is unchanged in data and in tracking. A unit test guards against the cwd being merged back into `remap_path_prefix`.
This is virtually the same target as the existing -gnu target, but using the ELFv2 ABI instead of the ELFv1 ABI and made possible now that we expose target_abi = "elfv1" or "elfv2" on the 64-bit PowerPC targets.
- `RegionInferenceContext::init_free_and_bound_regions()` is inlined into `::new()` and pulled to before initial SCC values are assigned - A couple of iteration-then-index patterns are changed into `iter_enumerated()`-style patterns - Some leftover code comments are removed and revised to actually describe the initialisation - Free regions are now marked as live everywhere in liveness constraints, then copied to scc_values upon initialisation, avoiding performing that logic twice It should do strictly less work, but almost all of it would only happen on free regions, and there shouldn't be large numbers of those. Depending on the cleverness of the optimiser most of the option/some checks should have been compiled away anyway. The key advantage as I see it is clearer flow: first liveness constraints are set up, then initial values are initialised, then region inference is ready to run.
To make the distinction clearer versus `macos-26` runners in preparation of experimenting with running `macos-26` runners in parallel.
Which mirrors the `aarch64-apple` `macos-15` runner image based workloads, but run on `macos-26` runner image, to evaluate running times. See RUST-157687.
Co-authored-by: Ralf Jung <post@ralfj.de>
Mostly replaces a few `format!` calls with `format_args!`
Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
revert 157013 revert rust-lang#157013 to open it again with crater and fcp this time cc @BoxyUwU r? lcnr
Prevent approving PRs that wait for Crater or formal decisions Context: https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/PR.20got.20merged.20without.20crater.20.26.20FCP/with/602435654
… r=JonathanBrouwer Rename `errors.rs` file to `diagnostics.rs` (7/N) Follow-up of rust-lang#157485. r? @JonathanBrouwer
Contributor
Author
Contributor
Contributor
|
⌛ Trying commit a99173f with merge ae6b3dc… To cancel the try build, run the command Workflow: https://github.com/rust-lang/rust/actions/runs/27431584449 |
rust-bors Bot
pushed a commit
that referenced
this pull request
Jun 12, 2026
Rollup of 23 pull requests try-job: dist-various-1 try-job: test-various try-job: x86_64-gnu-aux try-job: x86_64-gnu-llvm-21-3 try-job: x86_64-msvc-1 try-job: aarch64-apple try-job: x86_64-mingw-1 try-job: i686-msvc-2
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
PR #153662, which is a member of this rollup, was unapproved. This rollup was thus unapproved. |
Contributor
Author
|
@bors try cancel |
Contributor
|
Try build cancelled. Cancelled workflows: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
-Zremap-cwd-prefixin incremental compilation #157348 (Don't track cwd for-Zremap-cwd-prefixin incremental compilation)aarch64-apple-macos-26for evaluatingmacos-26runner images #157688 (Create experimental test jobaarch64-apple-macos-26for evaluatingmacos-26runner images)&raw EXPRas a missing comma #157079 (Don't recover&raw EXPRas a missing comma)TypeFoldable_Generic#157695 (Extend capabilities ofTypeFoldable_Generic)errors.rsfile todiagnostics.rs(6/N) #157752 (Renameerrors.rsfile todiagnostics.rs(6/N))errors.rsfile todiagnostics.rs(7/N) #157803 (Renameerrors.rsfile todiagnostics.rs(7/N))r? @ghost
Create a similar rollup