-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stability is not checked for glob imports #23049
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
Comments
Without |
Maybe I'm missing something, but what is the problem here? Assume we imported something unstable with a glob import. We still have to name it to use it and the moment we name it it's caught by a stability checker (modulo bugs like #30209). |
This is pretty orthogonal to |
But.. if a method is explicitly marked as stable then we certainly can call it. I don't think it's a bug, it's just something library maintainers have to be aware of - "don't make methods stable if you don't want people to call them on stable". |
Perhaps, yeah, although I vaguely remember there being other reasons why this bug was opened that I can't quite recall now. |
This code compiles in the stable channel and it's not intentional: fn main() {
let s = SliceConcatExt::concat(&[""][..]);
} The trait itself is supposed to be unstable, not usable by name like this. |
Closing as per #23049 (comment) |
Just what it says on the tin: this is especially a problem when importing an unstable trait with stable methods.
The text was updated successfully, but these errors were encountered: