X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc%2Fty%2Fflags.rs;h=8d7e7e16e85cb738fc102c4d0e76c3b39c4f90da;hb=fff08cb04389497d254fb40948674cbbee402908;hp=cb4724adc932cf6e2abd192641f3ecbe8d22ca53;hpb=35dbc5ec47be07d8d2f029a19ae39cf76d521369;p=rust.git diff --git a/src/librustc/ty/flags.rs b/src/librustc/ty/flags.rs index cb4724adc93..8d7e7e16e85 100644 --- a/src/librustc/ty/flags.rs +++ b/src/librustc/ty/flags.rs @@ -254,6 +254,9 @@ fn add_const(&mut self, c: &ty::Const<'_>) { ConstValue::Param(_) => { self.add_flags(TypeFlags::HAS_FREE_LOCAL_NAMES | TypeFlags::HAS_PARAMS); } + ConstValue::Placeholder(_) => { + self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER); + } _ => {}, } }