diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-28 18:06:11 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-12-28 18:52:36 +0100 |
| commit | 9067e4417e52643596ae8dbc4ec6369a0d856b45 (patch) | |
| tree | c2a5b6d238110bb40a1a06db2f288e01f4e1b9c0 /compiler/rustc_save_analysis | |
| parent | a1fc71196a5554eafc5dd9a1b4e0c159717141e0 (diff) | |
| download | rust-9067e4417e52643596ae8dbc4ec6369a0d856b45.tar.gz rust-9067e4417e52643596ae8dbc4ec6369a0d856b45.zip | |
Rename `Rptr` to `Ref` in AST and HIR
The name makes a lot more sense, and `ty::TyKind` calls it `Ref` already as well.
Diffstat (limited to 'compiler/rustc_save_analysis')
| -rw-r--r-- | compiler/rustc_save_analysis/src/sig.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/sig.rs b/compiler/rustc_save_analysis/src/sig.rs index 9197a28c188..5a1bcb8fdc8 100644 --- a/compiler/rustc_save_analysis/src/sig.rs +++ b/compiler/rustc_save_analysis/src/sig.rs @@ -165,7 +165,7 @@ impl<'hir> Sig for hir::Ty<'hir> { let text = format!("{}{}", prefix, nested.text); Ok(replace_text(nested, text)) } - hir::TyKind::Rptr(ref lifetime, ref mt) => { + hir::TyKind::Ref(ref lifetime, ref mt) => { let mut prefix = "&".to_owned(); prefix.push_str(&lifetime.ident.to_string()); prefix.push(' '); |
