-
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
Add a min_type_alias_impl_trait
feature gate
#82898
The head ref may contain hidden characters: "tait_\u{1F9CA}"
Conversation
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #82982) made this pull request unmergeable. Please resolve the merge conflicts. |
e08e1dc
to
9a36840
Compare
This comment has been minimized.
This comment has been minimized.
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.
This PR...seems pretty clean, @oli-obk! Left one suggestion. r=me with the comments.
@bors r=nikomatsakis |
📌 Commit 5d112657219d6b9543793f61d4f649b8dde5829a has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r=nikomatsakis |
📌 Commit 4bc1434 has been approved by |
Add a `min_type_alias_impl_trait` feature gate This new feature gate only permits type alias impl trait to be constrained by function and trait method return types. All other possible constraining sites like const/static types, closure return types and binding types are now forbidden and gated under the `type_alias_impl_trait` and `impl_trait_in_bindings` feature gates (which are both marked as incomplete, as they have various ways to ICE the compiler or cause query cycles where they shouldn't). r? `@nikomatsakis` This is best reviewed commit-by-commit
Add a `min_type_alias_impl_trait` feature gate This new feature gate only permits type alias impl trait to be constrained by function and trait method return types. All other possible constraining sites like const/static types, closure return types and binding types are now forbidden and gated under the `type_alias_impl_trait` and `impl_trait_in_bindings` feature gates (which are both marked as incomplete, as they have various ways to ICE the compiler or cause query cycles where they shouldn't). r? ``@nikomatsakis`` This is best reviewed commit-by-commit
⌛ Testing commit 4bc1434 with merge 1048ced8e57e19caa9b1ad54134043686f19b12c... |
@bors r=nikomatsakis rollup=iffy |
📌 Commit c2683aa has been approved by |
@bors rollup=never could theoretically affect perf |
⌛ Testing commit c2683aa with merge 998cb3882f027433e1f5b17da3302abe8a78477e... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors r=nikomatsakis |
📌 Commit e675941 has been approved by |
☀️ Test successful - checks-actions |
This new feature gate only permits type alias impl trait to be constrained by function and trait method return types. All other possible constraining sites like const/static types, closure return types and binding types are now forbidden and gated under the
type_alias_impl_trait
andimpl_trait_in_bindings
feature gates (which are both marked as incomplete, as they have various ways to ICE the compiler or cause query cycles where they shouldn't).r? @nikomatsakis
This is best reviewed commit-by-commit