Skip to content

Commit 1c4f99a

Browse files
committed
Fixed truncated path not being normalized.
1 parent 78f7e84 commit 1c4f99a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/ui/issues/issue-22638.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// normalize-stderr-test: "<\[closure@.+`" -> "$$CLOSURE`"
12+
1113
#![allow(unused)]
1214

1315
#![recursion_limit = "20"]

src/test/ui/issues/issue-22638.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error: reached the type-length limit while instantiating `D::matches::<[closure@/home/david/projects/rust/workdirs/rust1/s...`
2-
--> $DIR/issue-22638.rs:60:5
1+
error: reached the type-length limit while instantiating `D::matches::$CLOSURE`
2+
--> $DIR/issue-22638.rs:62:5
33
|
44
LL | / pub fn matches<F: Fn()>(&self, f: &F) {
55
LL | | //~^ ERROR reached the type-length limit while instantiating `D::matches::<[closure

0 commit comments

Comments
 (0)