-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Implement unstable trait impl #140399
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
base: master
Are you sure you want to change the base?
Implement unstable trait impl #140399
Conversation
d01f12a
to
9e139e1
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
486d3d3
to
02f780f
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
567ec89
to
80fd239
Compare
☔ The latest upstream changes (presumably #142299) made this pull request unmergeable. Please resolve the merge conflicts. |
850e3e1
to
27d9e21
Compare
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.
If we stop making TypingMode::PostAnalysis
return Ok(Yes)
when proving ClauseKind::UnstableFeature
, this test will ice: #142368 (comment)
This means the test is working as intended,
I've got nothing technical to add (I've not looked over the code). I just wanted to thank @tiif for taking on this task! It's far from trivial and has been a long-standing desire. |
This comment has been minimized.
This comment has been minimized.
a77d746
to
6e4c902
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #142483) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
gg gamer
I am leaving the conflicts there because I don't want to rebase for now (the conflict also happens quite frequently), so it would be easier for boxy to review. hi @jdonszelmann, it'd be nice to get a vibeck from you for the attribute change :) |
Some changes occurred in compiler/rustc_attr_parsing changes to the core type system Some changes occurred in compiler/rustc_passes/src/check_attr.rs changes to Some changes occurred in compiler/rustc_attr_data_structures |
Hi tiff! Will review this week :) |
5529925
to
5e2dc7b
Compare
☔ The latest upstream changes (presumably #142997) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
looks good from my side tiff!
@@ -268,5 +268,7 @@ pub enum AttributeKind { | |||
/// Span of the attribute. | |||
span: Span, | |||
}, | |||
/// Represents `#[unstable_feature_bound]`. |
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.
add a space above this simply to be consistent with the other ones (minor hehe)
@@ -675,6 +675,10 @@ pub static BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[ | |||
template!(List: r#"feature = "name", reason = "...", issue = "N""#), DuplicatesOk, | |||
EncodeCrossCrate::Yes | |||
), | |||
ungated!( | |||
unstable_feature_bound, Normal, template!(Word, List: "feat1, feat2, ..."), | |||
DuplicatesOk, EncodeCrossCrate::No, |
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.
we're moving lots of this info into the attribute system, that's why it duplicates the template for now. When you'll rebase on master you'll also have to duplicate the cross-crate-encoding somewhere else to make it compile
4add001
to
fd34b00
Compare
fd34b00
to
a90c483
Compare
☔ The latest upstream changes (presumably #143091) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR allows marking impls of stable trait with stable type as unstable.
The design and mentoring are done by @BoxyUwU