-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
#[stable], #[unstable], #[deprecated] are not errors when used non-#[staged_api] crates #22830
Comments
Willing to pick this up. One thing to note, that it will 100% cause breakage outside the compiler, and possibly inside as well. |
I did it this way to avoid breakage for people who were using them. We might put in deprecation warnings for a few weeks. |
I'm in favour of a smooth deprecation path via warnings! :) |
@alexcrichton asks whether the unused-attribute lint would catch these, or if they are unconditonally marked as used. Either way, some sort of warning sounds good. |
1.0 polish, P-high. |
@pnkfelix they are unconditionally marked as used. |
Ugh, I'm wishing I had done this a lot sooner. Working on a patch for this now, but it's probably going to cause some breakage. I'll see if I can guess how much. |
Here's the list of current out-of-tree usage of stability attributes https://gist.github.com/brson/1dd62761ee8dff6cdcaa |
Conflicts: src/librustc_data_structures/lib.rs
Conflicts: src/librustc_data_structures/lib.rs
This was fixed and backported to beta recently, yay! |
rust-lang/rust#22830 has caused this. I've changed the #[deprecated] to doc comments to let it compile. Not sure the best way to tell library users about deprecation now though.
They are ignored, but silently. It is probably better if we make them errors to give us room to build some future system with those nice names.
This compiles without a peep from rustc:
The text was updated successfully, but these errors were encountered: