diff options
| author | jackh726 <jack.huey@umassmed.edu> | 2021-07-18 03:18:05 -0400 |
|---|---|---|
| committer | jackh726 <jack.huey@umassmed.edu> | 2021-07-18 03:35:54 -0400 |
| commit | b9ee2fb6d8ca9d70a173ae710f5073d5bf27eff6 (patch) | |
| tree | 0ee882e5cecc79e04f65688bf2fb24b34081b101 /compiler/rustc_infer/src | |
| parent | eb0b95b55a0b38d91e834dd30902b67627ed2eb0 (diff) | |
| download | rust-b9ee2fb6d8ca9d70a173ae710f5073d5bf27eff6.tar.gz rust-b9ee2fb6d8ca9d70a173ae710f5073d5bf27eff6.zip | |
When pretty printing, name placeholders as bound regions
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/error_reporting/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs index e3a79fe2653..75b1d78dac4 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs @@ -995,7 +995,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { let get_lifetimes = |sig| { use rustc_hir::def::Namespace; let mut s = String::new(); - let (_, (sig, reg)) = ty::print::FmtPrinter::new(self.tcx, &mut s, Namespace::TypeNS) + let (_, sig, reg) = ty::print::FmtPrinter::new(self.tcx, &mut s, Namespace::TypeNS) .name_all_regions(sig) .unwrap(); let lts: Vec<String> = reg.into_iter().map(|(_, kind)| kind.to_string()).collect(); |
