-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove leftover of type ascription feature gating #111350
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
Conversation
fccb855
to
225ab7a
Compare
compiler/rustc_feature/src/active.rs
Outdated
@@ -532,8 +532,6 @@ declare_features! ( | |||
(active, try_blocks, "1.29.0", Some(31436), None), | |||
/// Allows `impl Trait` to be used inside type aliases (RFC 2515). | |||
(active, type_alias_impl_trait, "1.38.0", Some(63063), None), | |||
/// Allows the use of type ascription in expressions. | |||
(active, type_ascription, "1.6.0", Some(23416), None), |
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.
Note: this removed the language feature gate, but the built-in macro creates a library feature gate of the same name, which doesn't conflict.
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.
Should the feature be declared in rustc_feature::removed
?
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.
I wonder how well that interacts with the library feature. Maybe we should just keep the feature, but you can try moving it to removed.
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 also didn't remove it from AST right now, there are multiple test case is changed to use type_ascribe!
, maybe we should keep it at this moment.
compiler/rustc_feature/src/active.rs
Outdated
@@ -532,8 +532,6 @@ declare_features! ( | |||
(active, try_blocks, "1.29.0", Some(31436), None), | |||
/// Allows `impl Trait` to be used inside type aliases (RFC 2515). | |||
(active, type_alias_impl_trait, "1.38.0", Some(63063), None), | |||
/// Allows the use of type ascription in expressions. | |||
(active, type_ascription, "1.6.0", Some(23416), None), |
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.
Should the feature be declared in rustc_feature::removed
?
Let's keep the feature definition, but the removal of the gating code looks good. |
c3e7dc1
to
8baa32f
Compare
@bors r=Nilstrieb |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7d5b746): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 648.734s -> 647.604s (-0.17%) |
Fixes #111325
r? @Nilstrieb