-
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
Should use super::{self, ...}
work?
#37156
Comments
I suppose, any sequences of cc @jseyfried |
@petrochenkov @alexreg Also, if |
Maybe macros, yes. Is path concatenation ever useful? Something like "base path" + "relative path" -> "absolute path". I don't know.
, so maybe the restrictions on where they can be used may be lifted. |
Empty unusable name? 😄
|
Any update on this, @petrochenkov? |
The consensus seems to always require the rename part ( I think it's possible to hack up some working solution quickly, but the proper solution (as I see it) is to avoid splitting import paths into two parts (the last segment and everything else) like it's done now (this splitting causes quite a bit of issues) and desugar |
Why the obligatory rename on
If I understand this right, then yes, I tend to agree. What are the double brackets |
Conservative choice avoiding issues in various corner cases (rust-lang/rfcs#2126 (comment) contains all the details).
Just some way to express "resolve this path only in the specified namespace" in my comment. |
Okay, makes sense. I think I can get on board this then. |
Obviously
use super::self
would be a bit redundant, but what about if you're importing lots of items fromsuper
?We can already do something like:
So why not something like this?
For reference, the specific error message on nightly is:
The text was updated successfully, but these errors were encountered: