]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #82898 - oli-obk:tait_🧊, r=nikomatsakis
authorbors <bors@rust-lang.org>
Tue, 16 Mar 2021 04:24:48 +0000 (04:24 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 Mar 2021 04:24:48 +0000 (04:24 +0000)
commit195ad4830e11a544391abe296b146450dea8411b
tree181720fd58378ebc48800a2a10debdcdab36ba4d
parent4c10c84c63bb31d98afad757107970150d691c1e
parente67594166ecb808024a0694cd4c3ff9946d0837c
Auto merge of #82898 - oli-obk:tait_🧊, r=nikomatsakis

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