Skip to content

Rollup of 8 pull requests #145126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Aug 9, 2025
Merged

Rollup of 8 pull requests #145126

merged 31 commits into from
Aug 9, 2025

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Aug 8, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

RalfJung and others added 30 commits July 23, 2025 08:32
In rustc it doesn't really matter what the order of the witnesses is, but I'm planning to use the witnesses for implementing the "add missing match arms" assist in rust-analyzer, and there `true` before `false` is the natural order (like `Some` before `None`), and also what the current assist does.

The current order doesn't seem to be intentional; the code was created when bool ctors became their own thing, not just int ctors, but for integer, 0 before 1 is indeed the natural order.
LLVM21 fixed the new float types on a number of targets:

* SystemZ gained f16 support
  llvm/llvm-project#109164
* Hexagon now uses soft f16 to avoid recursion bugs
  llvm/llvm-project#130977
* Mips now correctly handles f128 (actually since LLVM20)
  llvm/llvm-project#117525
* f128 is now correctly aligned when passing the stack on x86
  llvm/llvm-project#138092

Thus, enable the types on relevant targets for LLVM > 21.0.0.

NVPTX also gained handling of f128 as a storage type, but it lacks
support for basic math operations so is still disabled here.
`TyCtxt::short_string` ensures that user visible type paths aren't overwhelming on the terminal output, and properly saves the long name to disk as a side-channel. We already use these throughout the compiler and have been using them as needed when users find cases where the output is verbose. This is a proactive search of some cases to use `short_string`.

We add support for shortening the path of "trait path only".

Every manual use of `short_string` is a bright marker that that error should be using structured diagnostics instead (as they have proper handling of long types without the maintainer having to think abou tthem).

When we don't actually print out a shortened type we don't need the "use `--verbose`" note.

On E0599 show type identity to avoid expanding the receiver's generic parameters.

Unify wording on `long_ty_path` everywhere.
When looking for the field names and types of a given type, account for tuples. This allows suggestions for incorrectly nested field accesses and field name typos to trigger as intended. Previously these suggestions only worked on `ty::Adt`, including tuple structs which are no different to tuples, so they should behave the same in suggestions.

```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
  --> $DIR/missing-field-access.rs:11:15
   |
LL |     let x = f.get_ref();
   |               ^^^^^^^ method not found in `(BufReader<File>,)`
   |
help: one of the expressions' fields has a method of the same name
   |
LL |     let x = f.0.get_ref();
   |               ++
```
When suggesting field access which would encounter a method not found, do not suggest pinning when those methods are on `impl Pin` itself.

```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
  --> $DIR/missing-field-access.rs:11:15
   |
LL |     let x = f.get_ref();
   |               ^^^^^^^ method not found in `(BufReader<File>,)`
   |
help: one of the expressions' fields has a method of the same name
   |
LL |     let x = f.0.get_ref();
   |               ++
```
instead of
```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
  --> $DIR/missing-field-access.rs:11:15
   |
LL |     let x = f.get_ref();
   |               ^^^^^^^ method not found in `(BufReader<File>,)`
   |
help: one of the expressions' fields has a method of the same name
   |
LL |     let x = f.0.get_ref();
   |               ++
help: consider pinning the expression
   |
LL ~     let mut pinned = std::pin::pin!(f);
LL ~     let x = pinned.as_ref().get_ref();
   |
```
Now that `macro_rules` macros can define attribute rules, make sure
error messages account for that.
This handles various kinds of errors, but does not allow applying the
attributes yet.

This adds the feature gate `macro_attr`.
…ttribute

Avoid saying "a declarative macro cannot be used as an attribute macro";
instead, say that the macro has no `attr` rules.
Add a FIXME for moving this error earlier.
Add infrastructure to apply an attribute macro given argument tokens and
body tokens.

Teach the resolver to consider `macro_rules` macros when looking for an
attribute via a path.

This does not yet handle local `macro_rules` attributes.
Teach the resolver to consider `macro_rules` macros when looking for a
local attribute. When looking for an attribute and considering a
`macro_rules` macro, load the macro in order to see if it has attribute
rules.

Include a FIXME about tracking multiple macro kinds for a Def instead.
Test macros via path and local macros.
…cursively

This allows a macro attribute to implement default arguments by
reapplying itself with the defaults filled in, for instance.
…sleywiser

Add `target_env = "macabi"` and `target_env = "sim"`

[RFC 2992](rust-lang/rfcs#2992) ([tracking issue](rust-lang#80970)) introduced `cfg(target_abi = ...)` with the original motivation being Mac Catalyst and Apple Simulator targets. These do not actually have a changed calling convention in the same sense that e.g. `cfg(target_abi = "eabihf")` or pointer authentication (`arm64e`) does, see rust-lang#133331.

Specifically, for Apple Simulator targets, the binary runs under the following conditions:
- Runs with the host macOS kernel (but in a mode configured for iOS/tvOS/...).
- Uses frameworks for the specific simulator version being targetted.
- System file accesses need to be made relative to the `IPHONE_SIMULATOR_ROOT` environment variable.
- Uses host GPUs directly.

And for Mac Catalyst:
- Runs with the host macOS kernel (but in a mode configured for iOS).
- Uses mostly host macOS frameworks (though with a few things changed, e.g. the [`NSImageResizingModeStretch`](https://developer.apple.com/documentation/appkit/nsimage/resizingmode-swift.enum/stretch?language=objc) enum has a different value).
- Uses host GPUs, camera and other peripherals directly.

As can be seen, these seem better suited as `target_env`s, since it really is the environment that the binary is running under that's changed (regardless of the Mac Catalyst "macabi" having "abi" in the name). So this PR adds `target_env = "sim"` and `target_env = "macabi"`, with the idea of possibly deprecating `target_abi = "sim"` and `target_abi = "macabi"` in the far future.

This affects iOS Tier 2 targets (`aarch64-apple-ios-sim`, `x86_64-apple-ios`, `aarch64-apple-ios-macabi` and `x86_64-apple-ios-macabi`), and probably needs a compiler FCP.

Fixes rust-lang#133331.
Reference PR: rust-lang/reference#1781.
Cargo doc PR: rust-lang/cargo#15404.

r? compiler
CC `@workingjubilee`
CC target maintainers `@deg4uss3r` `@thomcc` `@badboy` `@BlackHoleFox` `@madsmtm` `@agg23`
Use `tcx.short_string()` in more diagnostics

`TyCtxt::short_string` ensures that user visible type paths aren't overwhelming on the terminal output, and properly saves the long name to disk as a side-channel. We already use these throughout the compiler and have been using them as needed when users find cases where the output is verbose. This is a proactive search of some cases to use `short_string`.

We add support for shortening the path of "trait path only".

Every manual use of `short_string` is a bright marker that that error should be using structured diagnostics instead (as they have proper handling of long types without the maintainer having to think abou tthem).
atomicrmw on pointers: move integer-pointer cast hacks into backend

Conceptually, we want to have atomic operations on pointers of the form `fn atomic_add(ptr: *mut T, offset: usize, ...)`. However, LLVM does not directly support such operations (llvm/llvm-project#120837), so we have to cast the `offset` to a pointer somewhere.

This PR moves that hack into the LLVM backend, so that the standard library, intrinsic, and Miri all work with the conceptual operation we actually want. Hopefully, one day LLVM will gain a way to represent these operations without integer-pointer casts, and then the hack will disappear entirely.

Cc ```@nikic``` -- this is the best we can do right now, right?
Fixes rust-lang#134617
…, r=Nadrieril

In rustc_pattern_analysis, put `true` witnesses before `false` witnesses

In rustc it doesn't really matter what the order of the witnesses is, but I'm planning to use the witnesses for implementing the "add missing match arms" assist in rust-analyzer, and there `true` before `false` is the natural order (like `Some` before `None`), and also what the current assist does.

The current order doesn't seem to be intentional; the code was created when bool ctors became their own thing, not just int ctors, but for integer, 0 before 1 is indeed the natural order.

r? `@Nadrieril`
Implement declarative (`macro_rules!`) attribute macros (RFC 3697)

This implements [RFC 3697](rust-lang#143547), "Declarative (`macro_rules!`) attribute macros".

I would suggest reading this commit-by-commit. This first introduces the
feature gate, then adds parsing for attribute rules (doing nothing with them),
then adds the ability to look up and apply `macro_rules!` attributes by path,
then adds support for local attributes, then adds a test, and finally makes
various improvements to errors.
Account for bare tuples and `Pin` methods in field searching logic

When looking for the field names and types of a given type, account for tuples. This allows suggestions for incorrectly nested field accesses and field name typos to trigger as intended. Previously these suggestions only worked on `ty::Adt`, including tuple structs which are no different to tuples, so they should behave the same in suggestions.

When suggesting field access which would encounter a method not found, do not suggest pinning when those methods are on `impl Pin` itself.

```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
  --> $DIR/missing-field-access.rs:11:15
   |
LL |     let x = f.get_ref();
   |               ^^^^^^^ method not found in `(BufReader<File>,)`
   |
help: one of the expressions' fields has a method of the same name
   |
LL |     let x = f.0.get_ref();
   |               ++
```
instead of
```
error[E0599]: no method named `get_ref` found for tuple `(BufReader<File>,)` in the current scope
  --> $DIR/missing-field-access.rs:11:15
   |
LL |     let x = f.get_ref();
   |               ^^^^^^^ method not found in `(BufReader<File>,)`
   |
help: consider pinning the expression
   |
LL ~     let mut pinned = std::pin::pin!(f);
LL ~     let x = pinned.as_ref().get_ref();
   |
```

Fix rust-lang#144602.
more strongly dissuade use of `skip_binder`

People unfortunately encounter `Binder` and `EarlyBinder` very early on when starting out. In these cases its often very easy to use `skip_binder` incorrectly. This makes it more explicit that it should generally not be used and points to the relevant `rustc-dev-guide` chapters.

r? `@BoxyUwU`
Enable f16 and f128 on targets that were fixed in LLVM21

LLVM21 fixed the new float types on a number of targets:

* SystemZ gained f16 support  llvm/llvm-project#109164
* Hexagon now uses soft f16 to avoid recursion bugs  llvm/llvm-project#130977
* Mips now correctly handles f128 (actually since LLVM20) llvm/llvm-project#117525
* f128 is now correctly aligned when passing the stack on x86  llvm/llvm-project#138092

Thus, enable the types on relevant targets for LLVM > 21.0.0.

NVPTX also gained handling of f128 as a storage type, but it lacks support for basic math operations so is still disabled here.

try-job: dist-i586-gnu-i586-i686-musl
try-job: dist-i686-linux
try-job: dist-i686-msvc
try-job: dist-s390x-linux
try-job: dist-various-1
try-job: dist-various-2
try-job: dist-x86_64-linux
try-job: i686-gnu-1
try-job: i686-gnu-2
try-job: i686-msvc-1
try-job: i686-msvc-2
try-job: test-various
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc O-apple Operating system: Apple (macOS, iOS, tvOS, visionOS, watchOS) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Aug 8, 2025
@tgross35
Copy link
Contributor Author

tgross35 commented Aug 8, 2025

@bors r+ rollup=never p=5

I know I know, you're going to tell me the tree is closed

@bors
Copy link
Collaborator

bors commented Aug 8, 2025

📌 Commit 660bf91 has been approved by tgross35

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 8, 2025

🌲 The tree is currently closed for pull requests below priority 100. This pull request will be tested once the tree is reopened.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 8, 2025
@bors
Copy link
Collaborator

bors commented Aug 8, 2025

⌛ Testing commit 660bf91 with merge ffb9d94...

@bors
Copy link
Collaborator

bors commented Aug 9, 2025

☀️ Test successful - checks-actions
Approved by: tgross35
Pushing ffb9d94 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 9, 2025
@bors bors merged commit ffb9d94 into rust-lang:master Aug 9, 2025
11 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 9, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#139451 Add target_env = "macabi" and target_env = "sim" 50384cdb2fb3bed892b997ac229d9ce91de7cc32 (link)
#144039 Use tcx.short_string() in more diagnostics 6d97180b3ac35d3d36adbef79befdeee62e6c2f6 (link)
#144192 atomicrmw on pointers: move integer-pointer cast hacks into… fa5b81c020851e43e835c62c5fcb50aaffd4ddc8 (link)
#144545 In rustc_pattern_analysis, put true witnesses before `fal… c84595b6291173f7fba9c1a69a419d320e542b8a (link)
#144579 Implement declarative (macro_rules!) attribute macros (RF… b8546667bf471d0fbe263a06f95d3218e8784951 (link)
#144649 Account for bare tuples and Pin methods in field searchin… 8b6da96eb159f3f58616a3edb45892c1f7b6f165 (link)
#144775 more strongly dissuade use of skip_binder 476e8efc105a2d6b356333929fd2f38d56c08d86 (link)
#144987 Enable f16 and f128 on targets that were fixed in LLVM21 91db833c305c0f30284f98f1624afaafbf41bf8a (link)

previous master: de3efa79f9

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

Copy link
Contributor

github-actions bot commented Aug 9, 2025

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing de3efa7 (parent) -> ffb9d94 (this PR)

Test differences

Show 871 test diffs

Stage 1

  • errors::verify_codegen_ssa_aarch64_softfloat_neon_128: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_aarch64_softfloat_neon_129: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_compiler_builtins_cannot_call_123: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_dynamic_linking_with_lto_138: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_error_calling_dlltool_120: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_error_calling_dlltool_121: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_error_creating_import_library_124: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_error_creating_remark_dir_121: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_error_creating_remark_dir_122: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_error_writing_def_file_119: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_failed_to_get_layout_117: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_feature_not_valid_134: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_forbidden_ctarget_feature_131: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_forbidden_target_feature_attr_116: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_basic_float_type_79: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_basic_float_type_80: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_cannot_return_104: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_cannot_return_105: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_cast_wide_pointer_108: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_cast_wide_pointer_109: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_element_type_105: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_element_type_106: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_return_type_101: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_usize_110: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_usize_111: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_expected_vector_element_type_113: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_float_to_int_unchecked_80: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_float_to_int_unchecked_81: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_type_82: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_type_83: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_vector_81: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_floating_point_vector_82: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_inserted_type_100: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_invalid_bitmask_90: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_element_98: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_integer_type_94: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_integer_type_95: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_96: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_97: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_input_type_91: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_length_input_type_92: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_return_type_100: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_argument_84: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_argument_85: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_first_86: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_first_87: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_index_out_of_bounds_98: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_input_85: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_input_86: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_shuffle_96: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_simd_third_89: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_cast_111: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_operation_113: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_107: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_108: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_of_size_106: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_invalid_monomorphization_unsupported_symbol_of_size_107: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_lto_disallowed_135: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_lto_dylib_135: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_no_mangle_nameless_132: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_no_mangle_nameless_133: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_target_feature_safe_trait_115: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_target_feature_safe_trait_116: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_unknown_ctarget_feature_prefix_129: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_unknown_ctarget_feature_prefix_130: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_unstable_ctarget_feature_130: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_xcrun_sdk_path_warning_127: pass -> [missing] (J1)
  • errors::verify_codegen_ssa_xcrun_sdk_path_warning_128: [missing] -> pass (J1)
  • errors::verify_codegen_ssa_xcrun_unsuccessful_127: [missing] -> pass (J1)
  • spec::base::apple::tests::simulator_targets_set_abi: pass -> [missing] (J1)
  • spec::base::apple::tests::simulator_targets_set_env: [missing] -> pass (J1)
  • f128::test_real_consts: [missing] -> pass (J2)
  • floats::f128::test_clamp_min_greater_than_max: [missing] -> pass (J3)
  • floats::f128::test_clamp_min_is_nan: [missing] -> pass (J3)
  • floats::f128::test_float_bits_conv: [missing] -> pass (J3)
  • floats::f128::test_from: [missing] -> pass (J3)
  • floats::f128::test_is_sign_negative: [missing] -> pass (J3)
  • floats::f128::test_is_sign_positive: [missing] -> pass (J3)
  • floats::f128::test_next_up: [missing] -> pass (J3)
  • floats::f128::test_to_degrees: [missing] -> pass (J3)
  • floats::f128::test_to_radians: [missing] -> pass (J3)
  • floats::f128::test_total_cmp: [missing] -> pass (J3)
  • floats::infinity::test_f128: [missing] -> pass (J3)
  • floats::is_finite::test_f128: [missing] -> pass (J3)
  • floats::is_infinite::test_f128: [missing] -> pass (J3)
  • floats::nan::test_f128: [missing] -> pass (J3)
  • floats::neg_infinity::test_f128: [missing] -> pass (J3)
  • floats::neg_zero::test_f128: [missing] -> pass (J3)
  • floats::zero::test_f128: [missing] -> pass (J3)
  • [ui] tests/ui/macros/macro-rules-attr-error.rs: [missing] -> pass (J4)
  • [ui] tests/ui/macros/macro-rules-attr-infinite-recursion.rs: [missing] -> pass (J4)
  • [ui] tests/ui/macros/macro-rules-attr-nested.rs: [missing] -> pass (J4)
  • [ui] tests/ui/parser/macro/macro-attr-bad.rs: [missing] -> pass (J4)
  • [ui] tests/ui/tuple/missing-field-access.rs: [missing] -> pass (J4)

Stage 2

  • [ui] tests/ui/feature-gates/feature-gate-macro-attr.rs: [missing] -> pass (J0)
  • [ui] tests/ui/macros/macro-rules-attr-infinite-recursion.rs: [missing] -> pass (J0)
  • [ui] tests/ui/macros/macro-rules-attr-nested.rs: [missing] -> pass (J0)
  • [ui] tests/ui/macros/macro-rules-attr.rs: [missing] -> pass (J0)
  • [ui] tests/ui/parser/macro/macro-attr-bad.rs: [missing] -> pass (J0)
  • [ui] tests/ui/tuple/missing-field-access.rs: [missing] -> pass (J0)

(and 63 additional test diffs)

Additionally, 708 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard ffb9d94dcf4ade0d534842be3672d5e9f47e1333 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. dist-aarch64-linux: 5975.6s -> 8369.8s (40.1%)
  2. x86_64-apple-1: 10888.5s -> 7456.5s (-31.5%)
  3. pr-check-2: 2172.4s -> 2803.6s (29.1%)
  4. dist-apple-various: 4851.7s -> 3596.2s (-25.9%)
  5. dist-aarch64-apple: 8192.3s -> 6216.7s (-24.1%)
  6. dist-x86_64-apple: 7733.6s -> 8899.9s (15.1%)
  7. x86_64-gnu-llvm-19: 2479.8s -> 2852.8s (15.0%)
  8. pr-check-1: 1460.8s -> 1668.9s (14.2%)
  9. i686-gnu-2: 5334.0s -> 6025.7s (13.0%)
  10. tidy: 103.7s -> 116.9s (12.7%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ffb9d94): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.2%, 0.2%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.4% [-0.5%, -0.3%] 7
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -3.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-3.5% [-3.5%, -3.5%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -3.5% [-3.5%, -3.5%] 1

Cycles

Results (primary -0.9%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.2% [2.2%, 2.2%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.5% [-2.6%, -2.3%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.9% [-2.6%, 2.2%] 3

Binary size

Results (primary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 4
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 4

Bootstrap: 466.107s -> 465.236s (-0.19%)
Artifact size: 377.40 MiB -> 377.38 MiB (-0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. O-apple Operating system: Apple (macOS, iOS, tvOS, visionOS, watchOS) rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants