-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[1.38] #[bench] accepted on stable but not beta #63798
Copy link
Copy link
Closed
Labels
A-libtestArea: `#[test]` / the `test` libraryArea: `#[test]` / the `test` libraryA-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.P-highHigh priorityHigh priorityT-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Metadata
Metadata
Assignees
Labels
A-libtestArea: `#[test]` / the `test` libraryArea: `#[test]` / the `test` libraryA-stabilityArea: `#[stable]`, `#[unstable]` etc.Area: `#[stable]`, `#[unstable]` etc.P-highHigh priorityHigh priorityT-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.Relevant to the dev-tools subteam, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Initially reported by @e-oz here.
[playground]
On stable, you're allowed to define
#[bench]tests in your library, even if calling them requires nightly. This broke at least one stable user, so we should at least consider continuing to ignore#[bench]-annotated functions when not run viacargo bench.Is there some way to get a crater run to determine which libraries are using
#[bench]in an otherwise stable crate, so we can suggest that they move benchmarks into a dedicated folder?