Skip to content

Commit 4dc66fd

Browse files
committed
Auto merge of rust-lang#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
2 parents 6885d27 + 4d8c5e0 commit 4dc66fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎alloc/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@
142142
#![feature(alloc_layout_extra)]
143143
#![feature(trusted_random_access)]
144144
#![feature(try_trait)]
145-
#![feature(type_alias_impl_trait)]
145+
#![cfg_attr(bootstrap, feature(type_alias_impl_trait))]
146+
#![cfg_attr(not(bootstrap), feature(min_type_alias_impl_trait))]
146147
#![feature(associated_type_bounds)]
147148
#![feature(slice_group_by)]
148149
#![feature(decl_macro)]

0 commit comments

Comments
 (0)