Skip to content

Rollup of 8 pull requests #139992

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 22 commits into from
Apr 18, 2025
Merged

Rollup of 8 pull requests #139992

merged 22 commits into from
Apr 18, 2025

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

RalfJung and others added 22 commits April 7, 2025 17:00
This is for files that *participate* in actual tests but should not be
built by `compiletest` (i.e. these files are involved through `mod xxx;`
or `include!()` or `#[path = "xxx"]`, etc.).

A specialized directive like `//@ ignore-auxiliary` makes it way easier
to audit disabled tests via `//@ ignore-test`.
Assembly for MIPS uses, by convention, a different prefix for local
anonymous variables.
This commit fixes a false positive of the warning triggered for rust-lang#138762
and the fix is to codify that zero-sized types are "safe" in both the
old and new ABIs.
This intrinsic doesn't drop the value that is not selected so this is
manually done in the public function that wraps the intrinsic.
…-obk

Autodiff batching2

~I will rebase it once my first PR landed.~ done.
This autodiff batch mode is more similar to scalar autodiff, since it still only takes one shadow argument.
However, that argument is supposed to be `width` times larger.

r? `@oli-obk`

Tracking:

- rust-lang#124509
f*::NAN: guarantee that this is a quiet NaN

I think we should guarantee that this is a quiet NaN. This then implies that programs not using `f*::from_bits` (or unsafe type conversions) are guaranteed to only work with quiet NaNs. It would be awkward if people start to write `0.0 / 0.0` instead of using the constant just because they want to get a guaranteed-quiet NaN.

This is a `@rust-lang/libs-api` change. The definition of this constant currently is `0.0 / 0.0`, which is already guaranteed to be a quiet NaN. So all this does is forward that guarantee to our users.
…eywiser

Ignore zero-sized types in wasm future-compat warning

This commit fixes a false positive of the warning triggered for rust-lang#138762 and the fix is to codify that zero-sized types are "safe" in both the old and new ABIs.
Introduce and use specialized `//@ ignore-auxiliary` for test support files instead of using `//@ ignore-test`

### Summary

Add a semantically meaningful directive for ignoring test *auxiliary* files. This is for auxiliary files that *participate* in actual tests but should not be built by `compiletest` (i.e. these files are involved through `mod xxx;` or `include!()` or `#[path = "xxx"]`, etc.).

### Motivation

A specialized directive like `//@ ignore-auxiliary` makes it way easier to audit disabled tests via `//@ ignore-test`.
  - These support files cannot use the canonical `auxiliary/` dir because they participate in module resolution or are included, or their relative paths can be important for test intention otherwise.

Follow-up to:
- rust-lang#139705
- rust-lang#139783
- rust-lang#139740

See also discussions in:

- [#t-compiler > Directive name for non-test aux files?](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Directive.20name.20for.20non-test.20aux.20files.3F/with/512773817)
- [#t-compiler > Handling disabled &rust-lang#96;//@ ignore-test&rust-lang#96; tests](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Handling.20disabled.20.60.2F.2F.40.20ignore-test.60.20tests/with/512005974)
- [#t-compiler/meetings > &rust-lang#91;steering&rust-lang#93; 2025-04-11 Dealing with disabled tests](https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bsteering.5D.202025-04-11.20Dealing.20with.20disabled.20tests/with/511717981)

### Remarks on remaining unconditionally disabled tests under `tests/`

After this PR, against commit 79a272c, only **14** remaining test files are disabled through `//@ ignore-test`:

<details>
<summary>Remaining `//@ ignore-test` files under `tests/`</summary>

```
tests/debuginfo/drop-locations.rs
4://@ ignore-test (broken, see rust-lang#128971)

tests/rustdoc/macro-document-private-duplicate.rs
1://@ ignore-test (fails spuriously, see issue rust-lang#89228)

tests/rustdoc/inline_cross/assoc-const-equality.rs
3://@ ignore-test (FIXME: rust-lang#125092)

tests/ui/match/issue-27021.rs
7://@ ignore-test (rust-lang#54987)

tests/ui/match/issue-26996.rs
7://@ ignore-test (rust-lang#54987)

tests/ui/issues/issue-49298.rs
9://@ ignore-test (rust-lang#54987)

tests/ui/issues/issue-59756.rs
2://@ ignore-test (rustfix needs multiple suggestions)

tests/ui/precondition-checks/write.rs
5://@ ignore-test (unimplemented)

tests/ui/precondition-checks/read.rs
5://@ ignore-test (unimplemented)

tests/ui/precondition-checks/write_bytes.rs
5://@ ignore-test (unimplemented)

tests/ui/explicit-tail-calls/drop-order.rs
2://@ ignore-test: tail calls are not implemented in rustc_codegen_ssa yet, so this causes 🧊

tests/ui/panics/panic-short-backtrace-windows-x86_64.rs
3://@ ignore-test (rust-lang#92000)

tests/ui/json/json-bom-plus-crlf-multifile-aux.rs
3://@ ignore-test Not a test. Used by other tests

tests/ui/traits/next-solver/object-soundness-requires-generalization.rs
2://@ ignore-test (see rust-lang#114196)
```
</details>

Of these, most are either **unimplemented**, or **spurious**, or **known-broken**. The outstanding one is `tests/ui/json/json-bom-plus-crlf-multifile-aux.rs` which I did not want to touch in *this* PR -- that aux file has load-bearing BOM and carriage returns and byte offset matters. I think those test files that require special encoding / BOM probably are better off as `run-make` tests. See rust-lang#139968 for that aux file.

### Review advice

- Best reviewed commit-by-commit.
- The directive name diverged from the most voted `//@ auxiliary` because I think that's easy to confuse with `//@ aux-{crate,dir}`.

r? compiler
…g-merging-test, r=wesleywiser

Make C string merging test work on MIPS

Assembly for MIPS uses, by convention, a different prefix for local anonymous variables.
…fJung

Change `InterpCx::instantiate*` function visibility to pub

For some ongoing work in Miri we need to be able to access `instantiate_from_current_frame_and_normalize_erasing_regions` and `instantiate_from_frame_and_normalize_erasing_regions` on `InterpCx`.

r? `@RalfJung`
… r=RalfJung

Fix drop handling in `hint::select_unpredictable`

This intrinsic doesn't drop the value that is not selected so this is manually done in the public function that wraps the intrinsic.
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc F-autodiff `#![feature(autodiff)]` 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. labels Apr 17, 2025
@rustbot rustbot added the rollup A PR which is a rollup label Apr 17, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Apr 17, 2025

📌 Commit dc2d273 has been approved by matthiaskrgr

It is now in the queue for this repository.

@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 Apr 17, 2025
@bors
Copy link
Collaborator

bors commented Apr 17, 2025

⌛ Testing commit dc2d273 with merge 1f76d21...

@bors
Copy link
Collaborator

bors commented Apr 18, 2025

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 1f76d21 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 18, 2025
@bors bors merged commit 1f76d21 into rust-lang:master Apr 18, 2025
7 checks passed
@rustbot rustbot added this to the 1.88.0 milestone Apr 18, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#139351 Autodiff batching2 39b8e5ca9f6e3ba8b2f3348498c45f894f7777ad (link)
#139483 f*::NAN: guarantee that this is a quiet NaN 4f7be409c6fecc3d9c38a3b1b29d807d61799cea (link)
#139498 Ignore zero-sized types in wasm future-compat warning 503cdae24a40051b0fdc12b7ed4304308f99d163 (link)
#139967 Introduce and use specialized //@ ignore-auxiliary for te… 166e80112b82840347fb3caccc3f11c50765b237 (link)
#139969 update libc bb3671a1572e0dd105cab293cc1889ac7245a293 (link)
#139971 Make C string merging test work on MIPS 4e891cb8c1bf50beac371615510358d8ffbb9983 (link)
#139974 Change InterpCx::instantiate* function visibility to pub 8dc13ecdc8bfd7f636576794696e4cf40c0fd87d (link)
#139977 Fix drop handling in hint::select_unpredictable 5c55cdaa76ade198d39219df5efb2c0a7a4e1a83 (link)

previous master: a15cce2690

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

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 a15cce2 (parent) -> 1f76d21 (this PR)

Test differences

Show 765 test diffs

Stage 0

  • header::tests::test_ignore_auxiliary: [missing] -> pass (J7)
  • hint::select_unpredictable_drop: [missing] -> pass (J7)

Stage 1

  • [codegen] tests/codegen/autodiffv2.rs: [missing] -> ignore (ignored when LLVM Enzyme is disabled) (J1)
  • [codegen] tests/codegen/remap_path_prefix/aux_mod.rs: ignore (ignored always (this is not a test)) -> ignore (ignored used by another main test file ((used by ./main.rs))) (J1)
  • [debuginfo-gdb] tests/debuginfo/drop-locations.rs: ignore (ignored always (Stepping with "next" in a debugger skips past end-of-scope drops #128971)) -> ignore (ignored always ((broken, see Stepping with "next" in a debugger skips past end-of-scope drops #128971))) (J1)
  • [ui] tests/ui/borrowck/move-error-snippets-ext.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./move-error-snippets.rs))) (J1)
  • [ui] tests/ui/codemap_tests/two_files_data.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./two_files.rs))) (J1)
  • [ui] tests/ui/conditional-compilation/module_with_cfg.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./inner-cfg-non-inline-mod.rs))) (J1)
  • [ui] tests/ui/cross/cross-file-errors/underscore.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./main.rs))) (J1)
  • [ui] tests/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs: ignore (ignored always (not a test, auxiliary)) -> ignore (ignored used by another main test file ((used by ../../macro-expanded-mod.rs))) (J1)
  • [ui] tests/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs: ignore (ignored always (not a test, auxiliary)) -> ignore (ignored used by another main test file ((used by ../../macro-expanded-mod.rs))) (J1)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux1.rs: ignore (ignored always (this is not a test)) -> [missing] (J1)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux2.rs: ignore (ignored always (this is not a test)) -> [missing] (J1)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux3.rs: ignore (ignored always (this is not a test)) -> [missing] (J1)
  • [ui] tests/ui/lint/expansion-time-include.rs: ignore (ignored always (auxiliary file for expansion-time.rs)) -> ignore (ignored used by another main test file ((used by ./expansion-time.rs))) (J1)
  • [ui] tests/ui/lint/known-tool-in-submodule/submodule.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./root.rs))) (J1)
  • [ui] tests/ui/lint/lint_pre_expansion_extern_module_aux.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./lint-pre-expansion-extern-module.rs))) (J1)
  • [ui] tests/ui/lint/unknown-lints/other.rs: ignore (ignored always ((auxiliary))) -> ignore (ignored used by another main test file ((used by ./allow-in-other-module.rs))) (J1)
  • [ui] tests/ui/macros/include-single-expr-helper-1.rs: ignore (ignored always (auxiliary file for include-single-expr.rs)) -> ignore (ignored used by another main test file ((used by ./include-single-expr.rs))) (J1)
  • [ui] tests/ui/macros/include-single-expr-helper.rs: ignore (ignored always (auxiliary file for include-single-expr.rs)) -> ignore (ignored used by another main test file ((used by ./include-single-expr.rs))) (J1)
  • [ui] tests/ui/macros/issue-69838-dir/bar.rs: ignore (ignored always (this is an auxiliary file as part of another test.)) -> ignore (ignored used by another main test file ((used by ../issue-69838-mods-relative-to-included-path.rs))) (J1)
  • [ui] tests/ui/macros/issue-69838-dir/included.rs: ignore (ignored always (this is an auxiliary file as part of another test.)) -> ignore (ignored used by another main test file ((used by ../issue-69838-mods-relative-to-included-path.rs))) (J1)
  • [ui] tests/ui/macros/macro-expanded-include/foo/mod.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../test.rs))) (J1)
  • [ui] tests/ui/missing_non_modrs_mod/foo.rs: ignore (ignored always (this is just a helper for the real test in this dir)) -> ignore (ignored used by another main test file ((used by ./missing_non_modrs_mod.rs))) (J1)
  • [ui] tests/ui/missing_non_modrs_mod/foo_inline.rs: ignore (ignored always (this is just a helper for the real test in this dir)) -> ignore (ignored used by another main test file ((used by ./missing_non_modrs_mod_inline.rs))) (J1)
  • [ui] tests/ui/modules/mod_file_aux.rs: ignore (ignored always (Not a test. Used by other tests)) -> ignore (ignored used by another main test file ((used by ./mod_file_with_path_attr.rs and mod_file.rs))) (J1)
  • [ui] tests/ui/modules_and_files_visibility/mod_file_aux.rs: ignore (ignored always (Not a test. Used by other tests)) -> ignore (ignored used by another main test file ((used by ./mod_file_correct_spans.rs))) (J1)
  • [ui] tests/ui/modules_and_files_visibility/mod_file_disambig_aux.rs: ignore (ignored always (not a test. aux file)) -> ignore (ignored used by another main test file ((used by ./mod_file_disambig.rs))) (J1)
  • [ui] tests/ui/non_modrs_mods/foors_mod.rs: ignore (ignored always (not a test, used by non_modrs_mods.rs)) -> ignore (ignored used by another main test file ((used by ./non_modrs_mods.rs))) (J1)
  • [ui] tests/ui/non_modrs_mods_and_inline_mods/x.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./non_modrs_mods_and_inline_mods.rs))) (J1)
  • [ui] tests/ui/numbers-arithmetic/saturating-float-casts-impl.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./saturating-float-casts.rs and ./saturating-float-casts-wasm.rs))) (J1)
  • [ui] tests/ui/parser/circular_modules_hello.rs: ignore (ignored always (this is an auxiliary file for circular-modules-main.rs)) -> ignore (ignored used by another main test file ((used by ./circular-modules-main.rs))) (J1)
  • [ui] tests/ui/parser/issues/circular-module-with-doc-comment-issue-97589/recursive.rs: ignore (ignored always (this is an auxiliary file for circular-module-with-doc-comment-issue-97589.rs)) -> ignore (ignored used by another main test file ((used by ./circular-module-with-doc-comment-issue-97589.rs))) (J1)
  • [ui] tests/ui/parser/issues/issue-48508-aux.rs: ignore (ignored always (Not a test. Used by issue-48508.rs)) -> ignore (ignored used by another main test file ((used by ./issue-48508.rs))) (J1)
  • [ui] tests/ui/proc-macro/module.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs))) (J1)
  • [ui] tests/ui/proc-macro/module_with_attrs.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../inner-attr-non-inline-mod.rs))) (J1)
  • [ui] tests/ui/proc-macro/outer/inner.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../attributes-on-modules-fail.rs))) (J1)
  • [ui] tests/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack-show.rs))) (J1)
  • [ui] tests/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack-show.rs))) (J1)
  • [ui] tests/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack/hide.rs))) (J1)
  • [ui] tests/ui/runtime/backtrace-debuginfo-aux.rs: ignore (ignored always (not a test, used by backtrace-debuginfo.rs to test file!())) -> ignore (ignored used by another main test file ((used by ./backtrace-debuginfo.rs to test file!()))) (J1)
  • hint::select_unpredictable_drop: [missing] -> pass (J6)

Stage 2

  • [ui] tests/ui/borrowck/move-error-snippets-ext.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./move-error-snippets.rs))) (J0)
  • [ui] tests/ui/codemap_tests/two_files_data.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./two_files.rs))) (J0)
  • [ui] tests/ui/conditional-compilation/module_with_cfg.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./inner-cfg-non-inline-mod.rs))) (J0)
  • [ui] tests/ui/cross/cross-file-errors/underscore.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./main.rs))) (J0)
  • [ui] tests/ui/directory_ownership/macro_expanded_mod_helper/foo/bar.rs: ignore (ignored always (not a test, auxiliary)) -> ignore (ignored used by another main test file ((used by ../../macro-expanded-mod.rs))) (J0)
  • [ui] tests/ui/directory_ownership/macro_expanded_mod_helper/foo/mod.rs: ignore (ignored always (not a test, auxiliary)) -> ignore (ignored used by another main test file ((used by ../../macro-expanded-mod.rs))) (J0)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux1.rs: ignore (ignored always (this is not a test)) -> [missing] (J0)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux2.rs: ignore (ignored always (this is not a test)) -> [missing] (J0)
  • [ui] tests/ui/directory_ownership/mod_file_not_owning_aux3.rs: ignore (ignored always (this is not a test)) -> [missing] (J0)
  • [ui] tests/ui/lint/expansion-time-include.rs: ignore (ignored always (auxiliary file for expansion-time.rs)) -> ignore (ignored used by another main test file ((used by ./expansion-time.rs))) (J0)
  • [ui] tests/ui/lint/known-tool-in-submodule/submodule.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./root.rs))) (J0)
  • [ui] tests/ui/lint/lint_pre_expansion_extern_module_aux.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./lint-pre-expansion-extern-module.rs))) (J0)
  • [ui] tests/ui/lint/unknown-lints/other.rs: ignore (ignored always ((auxiliary))) -> ignore (ignored used by another main test file ((used by ./allow-in-other-module.rs))) (J0)
  • [ui] tests/ui/macros/include-single-expr-helper-1.rs: ignore (ignored always (auxiliary file for include-single-expr.rs)) -> ignore (ignored used by another main test file ((used by ./include-single-expr.rs))) (J0)
  • [ui] tests/ui/macros/include-single-expr-helper.rs: ignore (ignored always (auxiliary file for include-single-expr.rs)) -> ignore (ignored used by another main test file ((used by ./include-single-expr.rs))) (J0)
  • [ui] tests/ui/macros/issue-69838-dir/bar.rs: ignore (ignored always (this is an auxiliary file as part of another test.)) -> ignore (ignored used by another main test file ((used by ../issue-69838-mods-relative-to-included-path.rs))) (J0)
  • [ui] tests/ui/macros/issue-69838-dir/included.rs: ignore (ignored always (this is an auxiliary file as part of another test.)) -> ignore (ignored used by another main test file ((used by ../issue-69838-mods-relative-to-included-path.rs))) (J0)
  • [ui] tests/ui/macros/macro-expanded-include/foo/mod.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../test.rs))) (J0)
  • [ui] tests/ui/missing_non_modrs_mod/foo.rs: ignore (ignored always (this is just a helper for the real test in this dir)) -> ignore (ignored used by another main test file ((used by ./missing_non_modrs_mod.rs))) (J0)
  • [ui] tests/ui/missing_non_modrs_mod/foo_inline.rs: ignore (ignored always (this is just a helper for the real test in this dir)) -> ignore (ignored used by another main test file ((used by ./missing_non_modrs_mod_inline.rs))) (J0)
  • [ui] tests/ui/modules/mod_file_aux.rs: ignore (ignored always (Not a test. Used by other tests)) -> ignore (ignored used by another main test file ((used by ./mod_file_with_path_attr.rs and mod_file.rs))) (J0)
  • [ui] tests/ui/modules_and_files_visibility/mod_file_aux.rs: ignore (ignored always (Not a test. Used by other tests)) -> ignore (ignored used by another main test file ((used by ./mod_file_correct_spans.rs))) (J0)
  • [ui] tests/ui/modules_and_files_visibility/mod_file_disambig_aux.rs: ignore (ignored always (not a test. aux file)) -> ignore (ignored used by another main test file ((used by ./mod_file_disambig.rs))) (J0)
  • [ui] tests/ui/non_modrs_mods/foors_mod.rs: ignore (ignored always (not a test, used by non_modrs_mods.rs)) -> ignore (ignored used by another main test file ((used by ./non_modrs_mods.rs))) (J0)
  • [ui] tests/ui/non_modrs_mods_and_inline_mods/x.rs: ignore (ignored always (not a test)) -> ignore (ignored used by another main test file ((used by ./non_modrs_mods_and_inline_mods.rs))) (J0)
  • [ui] tests/ui/numbers-arithmetic/saturating-float-casts-impl.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./saturating-float-casts.rs and ./saturating-float-casts-wasm.rs))) (J0)
  • [ui] tests/ui/parser/circular_modules_hello.rs: ignore (ignored always (this is an auxiliary file for circular-modules-main.rs)) -> ignore (ignored used by another main test file ((used by ./circular-modules-main.rs))) (J0)
  • [ui] tests/ui/parser/issues/circular-module-with-doc-comment-issue-97589/recursive.rs: ignore (ignored always (this is an auxiliary file for circular-module-with-doc-comment-issue-97589.rs)) -> ignore (ignored used by another main test file ((used by ./circular-module-with-doc-comment-issue-97589.rs))) (J0)
  • [ui] tests/ui/parser/issues/issue-48508-aux.rs: ignore (ignored always (Not a test. Used by issue-48508.rs)) -> ignore (ignored used by another main test file ((used by ./issue-48508.rs))) (J0)
  • [ui] tests/ui/proc-macro/module.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ./attributes-on-modules-fail.rs))) (J0)
  • [ui] tests/ui/proc-macro/module_with_attrs.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../inner-attr-non-inline-mod.rs))) (J0)
  • [ui] tests/ui/proc-macro/outer/inner.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../attributes-on-modules-fail.rs))) (J0)
  • [ui] tests/ui/runtime/backtrace-debuginfo-aux.rs: ignore (ignored always (not a test, used by backtrace-debuginfo.rs to test file!())) -> ignore (ignored used by another main test file ((used by ./backtrace-debuginfo.rs to test file!()))) (J0)
  • [ui] tests/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack-show.rs))) (J2)
  • [ui] tests/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack-show.rs))) (J2)
  • [ui] tests/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs: ignore (ignored always ((auxiliary, used by other tests))) -> ignore (ignored used by another main test file ((used by ../../../pretty-print-hack/hide.rs))) (J2)
  • [codegen] tests/codegen/autodiffv2.rs: [missing] -> ignore (ignored when LLVM Enzyme is disabled) (J3)
  • [codegen] tests/codegen/remap_path_prefix/aux_mod.rs: ignore (ignored always (this is not a test)) -> ignore (ignored used by another main test file ((used by ./main.rs))) (J3)
  • [debuginfo-lldb] tests/debuginfo/drop-locations.rs: ignore (ignored always (Stepping with "next" in a debugger skips past end-of-scope drops #128971)) -> ignore (ignored always ((broken, see Stepping with "next" in a debugger skips past end-of-scope drops #128971))) (J4)
  • [debuginfo-gdb] tests/debuginfo/drop-locations.rs: ignore (ignored always (Stepping with "next" in a debugger skips past end-of-scope drops #128971)) -> ignore (ignored always ((broken, see Stepping with "next" in a debugger skips past end-of-scope drops #128971))) (J5)
  • [debuginfo-gdb (split-dwarf)] tests/debuginfo/drop-locations.rs: ignore (ignored always (Stepping with "next" in a debugger skips past end-of-scope drops #128971)) -> ignore (ignored always ((broken, see Stepping with "next" in a debugger skips past end-of-scope drops #128971))) (J8)
  • [run-make] tests/run-make/compressed-debuginfo-zstd: ignore (ignored if LLVM wasn't build with zstd for ELF section compression (we want LLVM/LLD to be built with zstd support)) -> pass (J8)
  • [debuginfo-cdb] tests/debuginfo/drop-locations.rs: ignore (ignored always (Stepping with "next" in a debugger skips past end-of-scope drops #128971)) -> ignore (ignored always ((broken, see Stepping with "next" in a debugger skips past end-of-scope drops #128971))) (J9)

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

Job group index

Job duration changes

  1. x86_64-rust-for-linux: 4139.5s -> 2605.5s (-37.1%)
  2. x86_64-apple-2: 7827.4s -> 5276.8s (-32.6%)
  3. mingw-check: 1829.3s -> 1251.2s (-31.6%)
  4. x86_64-gnu: 8702.1s -> 6049.3s (-30.5%)
  5. armhf-gnu: 6169.1s -> 4454.7s (-27.8%)
  6. test-various: 5817.3s -> 4255.4s (-26.8%)
  7. arm-android: 7033.5s -> 5282.8s (-24.9%)
  8. dist-apple-various: 7658.3s -> 5885.2s (-23.2%)
  9. x86_64-gnu-stable: 8540.4s -> 6614.6s (-22.5%)
  10. x86_64-gnu-tools: 7717.6s -> 6001.0s (-22.2%)
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 (1f76d21): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.5% [0.5%, 0.5%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.5% [-0.6%, -0.5%] 2
Improvements ✅
(secondary)
-0.5% [-0.5%, -0.5%] 1
All ❌✅ (primary) -0.2% [-0.6%, 0.5%] 3

Max RSS (memory usage)

Results (primary -0.8%, secondary 2.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.1% [0.5%, 4.2%] 4
Regressions ❌
(secondary)
2.1% [1.9%, 2.2%] 2
Improvements ✅
(primary)
-1.9% [-7.2%, -0.4%] 11
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.8% [-7.2%, 4.2%] 15

Cycles

Results (primary 0.2%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.1% [0.4%, 3.0%] 5
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.6% [-0.9%, -0.4%] 5
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.2% [-0.9%, 3.0%] 10

Binary size

Results (primary 0.1%, secondary -1.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.1% [0.0%, 0.5%] 28
Regressions ❌
(secondary)
0.6% [0.6%, 0.6%] 2
Improvements ✅
(primary)
-0.0% [-0.1%, -0.0%] 4
Improvements ✅
(secondary)
-6.8% [-6.8%, -6.8%] 1
All ❌✅ (primary) 0.1% [-0.1%, 0.5%] 32

Bootstrap: 775.923s -> 771.086s (-0.62%)
Artifact size: 364.98 MiB -> 365.01 MiB (0.01%)

@rustbot rustbot added the perf-regression Performance regression. label Apr 18, 2025
@panstromek
Copy link
Contributor

Perf triage:

Regression is small, likely caused by the libc update from #139969. Another candidate would be the the drop handling fix from #139977 but that instrinsic seems to be rarely used. Other changes don't touch runtime code.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Apr 22, 2025
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-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc F-autodiff `#![feature(autodiff)]` merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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.