diff options
| author | Michael Goulet <michael@errs.io> | 2024-04-04 20:23:52 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-04-15 16:45:26 -0400 |
| commit | 52c6b101ea18ed6f09367bf459ac55ffe473cd9c (patch) | |
| tree | 4bd7b7084b701a4c3e9deb299db09c209b5a7dbc /compiler/rustc_ast_pretty/src | |
| parent | ce8961039e244b1e4e0fa02fc10d59a22abc9ea3 (diff) | |
| download | rust-52c6b101ea18ed6f09367bf459ac55ffe473cd9c.tar.gz rust-52c6b101ea18ed6f09367bf459ac55ffe473cd9c.zip | |
Use a path instead of an ident (and stop manually resolving)
Diffstat (limited to 'compiler/rustc_ast_pretty/src')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index db9633bb1cb..96909940972 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -1156,7 +1156,7 @@ impl<'a> State<'a> { self.word("use"); self.word("<"); self.commasep(Inconsistent, precise_capturing_args, |s, arg| match arg { - ast::PreciseCapturingArg::Arg(a, _) => s.print_ident(*a), + ast::PreciseCapturingArg::Arg(p, _) => s.print_path(p, false, 0), ast::PreciseCapturingArg::Lifetime(lt) => s.print_lifetime(*lt), }); self.word(">") |
