GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — Support importing path-segment keyword with renaming by mu001999 · Pull Request #146972 · rust-lang/rust Conversation
|
|
Failed to set assignee to
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The previous wording for this restriction was pretty confusing to me. I don't remember what I was thinking when I wrote it, and I can't find any historical explanation either. `use` paths can use `$crate` as long as they have more than one segment (`use $crate::foo` is obviously OK). I have rewritten this to make it clear it is specifically about `use $crate`. One could say that restriction is already covered by the previous point that says `use crate;` requires an `as`, but for some reason `use $crate as foo` doesn't work either. So I have left this as a separate rule for now. cc rust-lang/rust#146972 (comment) for context.
ce2578f to
49c425d
Compare
use $crate::{self} like use $crate
49c425d to
d0d3a9d
Compare
d0d3a9d to
c8526a5
Compare
c8526a5 to
db9bb42
Compare
df75a52 to
96820fa
Compare
96820fa to
1473c4c
Compare
1473c4c to
e0d5fa0
Compare
e0d5fa0 to
4c38159
Compare
4c38159 to
aca5e4e
Compare
aca5e4e to
30a19ad
Compare
There was an error while loading. Please reload this page.
@traviscross Aligned now and you can see the changed test and result in the last commit (e2f18e7) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for the update. @rfcbot resolve self-super-behavior Note that in the Reference PR, we need to somehow capture what @ehuss said here:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Spurious failure |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mu001999: Please be sure to see the comment in #146972 (comment). Let us know what you'd propose in rust-lang/reference#2136 for that, then mark that PR ready for review. When the Reference PR is approved, this PR can land. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The documentation should be ready now. @petrochenkov Do you want to give this a final review? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yay, finally. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Restrictions on imports of$crate are illogical
use $crate::{self}; should not be accepted
Should use super::{self, ...} work?
self and super behave inconsistently in use statements and as module names
Can't import super
There was an error while loading. Please reload this page.