impl_trait_in_bindings
is a breaking change
#83021
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
F-impl_trait_in_bindings
`#![feature(impl_trait_in_bindings)]`
The following program compiles without the
impl_trait_in_bindings
feature, but not with that feature. I believe this is because the wayimpl_trait_in_bindings
is set up. If you look atrust/compiler/rustc_typeck/src/check/gather_locals.rs
Lines 61 to 65 in 9b2b02a
you can see that enabling the feature gate runs a completely different algorithm instead of emitting a feature error when the feature gate is not active. Before stabilizing
type_alias_impl_trait
we need to make sure that we change all such occurrences of feature-gate based type processing.(Playground)
Errors:
The text was updated successfully, but these errors were encountered: