We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae0be5 commit 0f35c0cCopy full SHA for 0f35c0c
src/test/ui/track-diagnostics/track5.rs
@@ -0,0 +1,8 @@
1
+// compile-flags: -Z track-diagnostics
2
+// error-pattern: created at
3
+
4
+// Normalize the emitted location so this doesn't need
5
+// updating everytime someone adds or removes a line.
6
+// normalize-stderr-test ".rs:\d+:\d+" -> ".rs:LL:CC"
7
8
+}
src/test/ui/track-diagnostics/track5.stderr
@@ -0,0 +1,9 @@
+error: unexpected closing delimiter: `}`
+ --> $DIR/track5.rs:LL:CC
+ |
+LL | }
+ | ^ unexpected closing delimiter
+-Ztrack-diagnostics: created at compiler/rustc_parse/src/lexer/tokentrees.rs:LL:CC
+error: aborting due to previous error
9
0 commit comments