about summary refs log tree commit diff
path: root/compiler/rustc_infer/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-09-09 08:36:50 +0200
committerRalf Jung <post@ralfj.de>2023-09-21 22:20:58 +0200
commitc4ec12f4b701d9be95143f3fa77b1f1af07de18c (patch)
tree79e8dc343b1a469ed677ae06e0952cea76ce57cf /compiler/rustc_infer/src
parente4a361a48a59ead52b302aaa2e1d9d345264935a (diff)
downloadrust-c4ec12f4b701d9be95143f3fa77b1f1af07de18c.tar.gz
rust-c4ec12f4b701d9be95143f3fa77b1f1af07de18c.zip
adjust how closure/generator types and rvalues are printed
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 6dba5d2945d..b8701d3d3ef 100644
--- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs
+++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs
@@ -1616,7 +1616,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
                     //    |     expected `()`, found closure
                     //    |
                     //    = note: expected unit type `()`
-                    //                 found closure `[closure@$DIR/issue-20862.rs:2:5: 2:14 x:_]`
+                    //                 found closure `{closure@$DIR/issue-20862.rs:2:5: 2:14 x:_}`
                     //
                     // Also ignore opaque `Future`s that come from async fns.
                     if !self.ignore_span.overlaps(span)