diff options
| author | lcnr <rust@lcnr.de> | 2023-11-14 13:13:27 +0000 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-11-14 13:13:27 +0000 |
| commit | 15f21562e627cb37e74d5e27f22eafc76cf4ec01 (patch) | |
| tree | 67136a951b052553165db07c40f06bd9c9c813f3 /src/librustdoc/clean/auto_trait.rs | |
| parent | 5526682702c502626f5dc31f80d07f2b7339c81a (diff) | |
| download | rust-15f21562e627cb37e74d5e27f22eafc76cf4ec01.tar.gz rust-15f21562e627cb37e74d5e27f22eafc76cf4ec01.zip | |
finish `RegionKind` rename
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
Diffstat (limited to 'src/librustdoc/clean/auto_trait.rs')
| -rw-r--r-- | src/librustdoc/clean/auto_trait.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs index eb946e82f39..007c5e113b7 100644 --- a/src/librustdoc/clean/auto_trait.rs +++ b/src/librustdoc/clean/auto_trait.rs @@ -723,7 +723,7 @@ where fn region_name(region: Region<'_>) -> Option<Symbol> { match *region { - ty::ReEarlyBound(r) => Some(r.name), + ty::ReEarlyParam(r) => Some(r.name), _ => None, } } @@ -743,7 +743,7 @@ impl<'a, 'tcx> TypeFolder<TyCtxt<'tcx>> for RegionReplacer<'a, 'tcx> { match *r { // These are the regions that can be seen in the AST. ty::ReVar(vid) => self.vid_to_region.get(&vid).cloned().unwrap_or(r), - ty::ReEarlyBound(_) | ty::ReStatic | ty::ReBound(..) | ty::ReError(_) => r, + ty::ReEarlyParam(_) | ty::ReStatic | ty::ReBound(..) | ty::ReError(_) => r, r => bug!("unexpected region: {r:?}"), } } |
