Explorer: Reduce prelude path when printing source location (#3080)

The Prelude path can be very long, which can make the `SourceLocation`'s
`Print(...)` method output unnecessarily verbose. This PR modifies the
`SourceLocation`'s `Print()` method to just print the **filename** and
**line number** for prelude.
This commit is contained in:
Prabhat Sachdeva
2023-08-09 17:57:07 +00:00
committed by GitHub
parent 927375f9c6
commit 2f70c7d8bb
13 changed files with 19 additions and 13 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// AUTOUPDATE
// CHECK:STDERR: RUNTIME ERROR: /explorer/data/prelude.carbon:{{\d+}}: "Attempted to unwrap empty Optional"
// CHECK:STDERR: RUNTIME ERROR: prelude.carbon:{{\d+}}: "Attempted to unwrap empty Optional"
package ExplorerTest api;