diff options
| author | bors <bors@rust-lang.org> | 2022-11-27 14:30:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-11-27 14:30:19 +0000 |
| commit | 454784afba5bf35b5ff14ada0e31265ad1d75e73 (patch) | |
| tree | 99c518c8558f20305cd854ab662861d9ba9a571e /compiler/rustc_save_analysis | |
| parent | df04d28163cc42e2c5b1072abe68460f904e42be (diff) | |
| parent | 5de9c841402d40ef30426b096c7696b1e01f2892 (diff) | |
| download | rust-454784afba5bf35b5ff14ada0e31265ad1d75e73.tar.gz rust-454784afba5bf35b5ff14ada0e31265ad1d75e73.zip | |
Auto merge of #104048 - cjgillot:split-lifetime, r=compiler-errors
Separate lifetime ident from lifetime resolution in HIR Drive-by: change how suggested generic args are computed. Fixes https://github.com/rust-lang/rust/issues/103815 I recommend reviewing commit-by-commit.
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 74048ff7da3..9197a28c188 100644 --- a/compiler/rustc_save_analysis/src/sig.rs +++ b/compiler/rustc_save_analysis/src/sig.rs @@ -167,7 +167,7 @@ impl<'hir> Sig for hir::Ty<'hir> { } hir::TyKind::Rptr(ref lifetime, ref mt) => { let mut prefix = "&".to_owned(); - prefix.push_str(&lifetime.name.ident().to_string()); + prefix.push_str(&lifetime.ident.to_string()); prefix.push(' '); if mt.mutbl.is_mut() { prefix.push_str("mut "); |
