-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
use
of unstable function is not gated in import list
#28075
Comments
Let's fix soon! |
use
of unstable feature is not gated in import listuse
of unstable function is not gated in import list
This should be a matter of fixing the appropriate case in |
This actually applies to all stability attributes and unused feature checks, and it looks like this is a result of foo.rs: #![feature(iter_order)]
use std::iter::{order};
fn main() {} Output:
|
Compare that with: #![feature(iter_order)]
use std::iter::order;
fn main() {} Output:
|
I'd like to try looking at this, if that's okay. |
@terrynsun Go for it! |
@terrynsun How's this going? |
Sorry! I was struggling with the structure of the AST walking and couldn't figure it out. |
triage: P-high |
This is actually unstable but [there's a bug][bug] in the compiler allowing it to be used. Good news is that these functions are available stable elsewhere! [bug]: rust-lang/rust#28075
This is actually unstable but [there's a bug][bug] in the compiler allowing it to be used. Good news is that these functions are available stable elsewhere! [bug]: rust-lang/rust#28075
Avoid using the std::intrinsics module This is actually unstable but [there's a bug][bug] in the compiler allowing it to be used. Good news is that these functions are available stable elsewhere! [bug]: rust-lang/rust#28075
Avoid using the std::intrinsics module This is actually unstable but [there's a bug][bug] in the compiler allowing it to be used. Good news is that these functions are available stable elsewhere! [bug]: rust-lang/rust#28075 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/tendril/20) <!-- Reviewable:end -->
This is actually unstable but [there's a bug][bug] in the compiler allowing it to be used. Good news is that these functions are available stable elsewhere! [bug]: rust-lang/rust#28075
This compiles on stable:
use std::thread::{catch_panic};
but this does not:
Fortunately, I can't find a way to actually use the import anyway, but it's a stability trap.
The text was updated successfully, but these errors were encountered: