Repository navigation
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)A-hygieneArea: Macro hygieneA-libtestArea: `#[test]` / the `test` libraryA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.S-has-bisectionStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.
Description
This regression was found by the 1.99 crater run.
[INFO] [stdout] error[E0658]: use of an internal attribute
[INFO] [stdout] --> src/main.rs:165:5
[INFO] [stdout] |
[INFO] [stdout] 165 | #[sequential]
[INFO] [stdout] | ^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: the `rustc_test_entrypoint_marker` attribute is an internal implementation detail that will never be stable
[INFO] [stdout] = note: this error originates in the attribute macro `sequential` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] For more information about this error, try `rustc --explain E0658`.
Affects 9 crates. The errors point to #[sequential], #[debug], or #[test].
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/Haider-Ali-DS.simple-axum-notes-api/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/PRO-2684.Candy-Pile/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/kcui5.redlib/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/open-rust.macro-log/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/gh/seagleNet.permfixer/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/reg/etest-tests-0.3.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/reg/lambda-otel-lite-0.19.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/reg/libreddit-0.30.1/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.99-4/1.99.0-beta.1/reg/sequential-test-0.2.4/log.txt
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)A-hygieneArea: Macro hygieneA-libtestArea: `#[test]` / the `test` libraryA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.S-has-bisectionStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.
Type
Projects
- StatusShow more project fieldsDone
Activity
cyrgani commentedon Aug 28, 2026
reduction for
sequential-test:and
cyrgani commentedon Aug 28, 2026
bisects to #158854 (cc @jdonszelmann @JonathanBrouwer)
5 remaining items
JonathanBrouwer commentedon Aug 28, 2026
The cause is that #158854 adds a new
rustc_test_entrypointattribute on the expansion of#[test]functions. This attribute has a span that allows the usage of therustc_attrsfeature. The proc macro does.to_string().parse(), losing the span of the attribute.I don't see an easy fix for this, especially not one that is low risk enough to land into beta. I'll post a revert PR for #158854.
JonathanBrouwer commentedon Aug 28, 2026
Revert posted: #161931
mejrs commentedon Aug 28, 2026
It could be a synthetic attribute, like the cfg_trace attributes, meaning (I think) it would be lost if it was roundtripped like above.
JonathanBrouwer commentedon Aug 28, 2026
I suggested this here, that's probably the best fix indeed
#161931 (comment)
Rollup merge of rust-lang#161931 - JonathanBrouwer:revert-test-entry-…
Rollup merge of rust-lang#161931 - JonathanBrouwer:revert-test-entry-…
Rollup merge of rust-lang#161931 - JonathanBrouwer:revert-test-entry-…
Rollup merge of rust-lang#161931 - JonathanBrouwer:revert-test-entry-…
Unrolled build for #161931 in rollup 162028