Don't set STILL_FURTHER_SPECIALIZABLE for regions/bound variables
This commit is contained in:
parent
d660dbc630
commit
9818bc08d3
@ -93,7 +93,6 @@ fn add_kind(&mut self, kind: &ty::TyKind<'_>) {
|
||||
|
||||
&ty::Bound(debruijn, _) => {
|
||||
self.add_binder(debruijn);
|
||||
self.add_flags(TypeFlags::STILL_FURTHER_SPECIALIZABLE);
|
||||
}
|
||||
|
||||
&ty::Placeholder(..) => {
|
||||
@ -216,7 +215,6 @@ fn add_const(&mut self, c: &ty::Const<'_>) {
|
||||
}
|
||||
ty::ConstKind::Bound(debruijn, _) => {
|
||||
self.add_binder(debruijn);
|
||||
self.add_flags(TypeFlags::STILL_FURTHER_SPECIALIZABLE);
|
||||
}
|
||||
ty::ConstKind::Param(_) => {
|
||||
self.add_flags(TypeFlags::HAS_CT_PARAM);
|
||||
|
@ -1589,19 +1589,16 @@ pub fn type_flags(&self) -> TypeFlags {
|
||||
flags = flags | TypeFlags::HAS_FREE_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_FREE_LOCAL_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_RE_INFER;
|
||||
flags = flags | TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||
}
|
||||
ty::RePlaceholder(..) => {
|
||||
flags = flags | TypeFlags::HAS_FREE_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_FREE_LOCAL_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_RE_PLACEHOLDER;
|
||||
flags = flags | TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||
}
|
||||
ty::ReEarlyBound(..) => {
|
||||
flags = flags | TypeFlags::HAS_FREE_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_FREE_LOCAL_REGIONS;
|
||||
flags = flags | TypeFlags::HAS_RE_PARAM;
|
||||
flags = flags | TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||
}
|
||||
ty::ReFree { .. } => {
|
||||
flags = flags | TypeFlags::HAS_FREE_REGIONS;
|
||||
|
Loading…
Reference in New Issue
Block a user