mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
remove some (apparently) dead code
This commit is contained in:
@@ -111,15 +111,6 @@ fn has_erasable_regions(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_FREE_REGIONS)
|
||||
}
|
||||
|
||||
fn is_normalized_for_trans(&self) -> bool {
|
||||
!self.has_type_flags(TypeFlags::HAS_RE_INFER |
|
||||
TypeFlags::HAS_FREE_REGIONS |
|
||||
TypeFlags::HAS_TY_INFER |
|
||||
TypeFlags::HAS_PARAMS |
|
||||
TypeFlags::HAS_NORMALIZABLE_PROJECTION |
|
||||
TypeFlags::HAS_TY_ERR |
|
||||
TypeFlags::HAS_SELF)
|
||||
}
|
||||
/// Indicates whether this value references only 'global'
|
||||
/// types/lifetimes that are the same regardless of what fn we are
|
||||
/// in. This is used for caching. Errs on the side of returning
|
||||
|
||||
@@ -1171,13 +1171,6 @@ pub fn is_late_bound(&self) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn needs_infer(&self) -> bool {
|
||||
match *self {
|
||||
ty::ReVar(..) | ty::ReSkolemized(..) => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn escapes_depth(&self, depth: u32) -> bool {
|
||||
match *self {
|
||||
ty::ReLateBound(debruijn, _) => debruijn.depth > depth,
|
||||
|
||||
Reference in New Issue
Block a user