about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-22 02:22:02 +0000
committerbors <bors@rust-lang.org>2021-07-22 02:22:02 +0000
commit8024983ea73e1d1c16720a424d39fd1c239eee68 (patch)
tree7f9cee3408ac3190947f14da2b141fba53ba2b3e /compiler/rustc_infer/src
parent602150f21fd8a9bd3e903039c0d8c008d85aa7f1 (diff)
parentb9ee2fb6d8ca9d70a173ae710f5073d5bf27eff6 (diff)
downloadrust-8024983ea73e1d1c16720a424d39fd1c239eee68.tar.gz
rust-8024983ea73e1d1c16720a424d39fd1c239eee68.zip
Auto merge of #87246 - rust-lang:placeholder-pretty, r=nikomatsakis
When pretty printing, name placeholders as bound regions

Split from #85499

When we see a placeholder that we are going to print, treat it as a bound var (and add it to a `for<...>`
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 426db95aca1..f885c0a4b87 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();