rename ReLateBound
to ReBound
other changes: - `Region::new_late_bound` -> `Region::new_bound` - `Region::is_late_bound` -> `Region::is_bound`
This commit is contained in:
parent
28328c8389
commit
86fa1317a3
80 changed files with 192 additions and 195 deletions
|
@ -270,7 +270,7 @@ fn encode_region<'tcx>(
|
|||
// u6region[I[<region-disambiguator>][<region-index>]E] as vendor extended type
|
||||
let mut s = String::new();
|
||||
match region.kind() {
|
||||
RegionKind::ReLateBound(debruijn, r) => {
|
||||
RegionKind::ReBound(debruijn, r) => {
|
||||
s.push_str("u6regionI");
|
||||
// Debruijn index, which identifies the binder, as region disambiguator
|
||||
let num = debruijn.index() as u64;
|
||||
|
@ -282,6 +282,7 @@ fn encode_region<'tcx>(
|
|||
s.push('E');
|
||||
compress(dict, DictKey::Region(region), &mut s);
|
||||
}
|
||||
// FIXME(@lcnr): Why is `ReEarlyBound` reachable here.
|
||||
RegionKind::ReEarlyBound(..) | RegionKind::ReErased => {
|
||||
s.push_str("u6region");
|
||||
compress(dict, DictKey::Region(region), &mut s);
|
||||
|
|
|
@ -319,9 +319,9 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
|
|||
// shorter mangling of `L_`.
|
||||
ty::ReErased => 0,
|
||||
|
||||
// Late-bound lifetimes use indices starting at 1,
|
||||
// Bound lifetimes use indices starting at 1,
|
||||
// see `BinderLevel` for more details.
|
||||
ty::ReLateBound(debruijn, ty::BoundRegion { var, kind: ty::BrAnon }) => {
|
||||
ty::ReBound(debruijn, ty::BoundRegion { var, kind: ty::BrAnon }) => {
|
||||
let binder = &self.binders[self.binders.len() - 1 - debruijn.index()];
|
||||
let depth = binder.lifetime_depths.start + var.as_u32();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue