-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[beta] Do not accidentally treat multi-segment meta-items as single-segment #59259
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
|
Discussed at T-compiler meeting. We are inclined towards a lukewarm beta-accept Why lukewarm:
Having said that, we trust @petrochenkov wouldn't have put the work into making this PR if it wasn't actually important. However, I also want to make sure this PR gets a proper review to make sure that the changes it makes are the right subset of #58899. So:
|
r? @estebank |
The extraneous changes should be left in #58899, everything here should be necessary due to removal of the old methods. |
Some(word) => single_imports.push((word.name(), word.span)), | ||
None => ill_formed(nested_meta.span), | ||
match nested_meta.ident() { | ||
Some(ident) if nested_meta.is_word() => single_imports.push(ident), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a follow up PR, I see this pattern in multiple places, it'd be nice to add a method get_word_ident()
to nested_meta
so you can use if let
everywhere the alternative is discarded/an error.
@bors r+ |
📌 Commit f8b17c5 has been approved by |
@bors p=1 |
⌛ Testing commit f8b17c5 with merge 2df55de6ccdb886fd78e76a80840ee9896816bb1... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
[beta] Do not accidentally treat multi-segment meta-items as single-segment Partial backport of #58899 to beta
☀️ Test successful - checks-travis, status-appveyor |
Partial backport of #58899 to beta