about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorjackh726 <jack.huey@umassmed.edu>2021-07-18 03:18:05 -0400
committerjackh726 <jack.huey@umassmed.edu>2021-07-18 03:35:54 -0400
commitb9ee2fb6d8ca9d70a173ae710f5073d5bf27eff6 (patch)
tree0ee882e5cecc79e04f65688bf2fb24b34081b101 /compiler/rustc_infer/src
parenteb0b95b55a0b38d91e834dd30902b67627ed2eb0 (diff)
downloadrust-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.rs2
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();