-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
[1.38] #[bench]
accepted on stable but not beta
#63798
Comments
I think it's related to this: #62048 Unsure how it got marked stable in the first place. |
|
Reverting the unstabilization and making a beta backport is always an option, it's a one line change. Complaints filed so far:
|
I don't think we should re-stabilize especially given that some folks have already migrated. |
I wish we had unsurpressable future-compat warnings so a cycle's worth of just a future-compat warning for Because we don't, I assume said grace period wouldn't help find any remaining uses, just delay the errorification. So I guess the question is: |
Accidental stabilizations are not part of our stability guarantee. Still, if possible I think we should try to avoid breaking crates. |
Implemented in #59658; I'll be picking this up shortly to address the concerns raised there re. spam. |
@CAD97 What was unstabilized is the actual use of #[bench]
fn foo() {} It previously didn't compile in |
I'm not sure the back compat warning is a good solution since |
@petrochenkov That's just a wording issue. I meant that using |
@petrochenkov |
@e-oz The new version of |
@CAD97 |
@fbstj thank you very much! Works great. |
Despite the small number of root regressions, there seems to be a huge amount of indirect breakage - #63628 (comment), we cannot leave this as is. If someone wants to implement a lint reporting |
#[bench]
accepted on stable but not beta
If we are "fixing" this (allowing |
Fixed in #64066. |
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?The text was updated successfully, but these errors were encountered: