From dc5a6571a685189039feb9512dbcb599c1ef4102 Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 9 Aug 2018 12:48:31 +0200 Subject: [PATCH] Fixed truncated path not being normalized. --- src/test/ui/issues/issue-22638.rs | 2 ++ src/test/ui/issues/issue-22638.stderr | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/ui/issues/issue-22638.rs b/src/test/ui/issues/issue-22638.rs index 1c534ebbd435..10ea1077ede5 100644 --- a/src/test/ui/issues/issue-22638.rs +++ b/src/test/ui/issues/issue-22638.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// normalize-stderr-test: "<\[closure@.+`" -> "$$CLOSURE`" + #![allow(unused)] #![recursion_limit = "20"] diff --git a/src/test/ui/issues/issue-22638.stderr b/src/test/ui/issues/issue-22638.stderr index a549c00a341f..299d74b08b80 100644 --- a/src/test/ui/issues/issue-22638.stderr +++ b/src/test/ui/issues/issue-22638.stderr @@ -1,5 +1,5 @@ -error: reached the type-length limit while instantiating `D::matches::<[closure@/home/david/projects/rust/workdirs/rust1/s...` - --> $DIR/issue-22638.rs:60:5 +error: reached the type-length limit while instantiating `D::matches::$CLOSURE` + --> $DIR/issue-22638.rs:62:5 | LL | / pub fn matches(&self, f: &F) { LL | | //~^ ERROR reached the type-length limit while instantiating `D::matches::<[closure