From f18446e78de1e925b9849bd618e20ed471ad0e61 Mon Sep 17 00:00:00 2001 From: Julian Kulesh Date: Fri, 1 Dec 2017 11:38:30 +0300 Subject: [PATCH] add magic comment for ui test, remove newline --- src/librustc_resolve/lib.rs | 1 - src/test/ui/issue-46332.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index fdee469a3fb..42c31a6e47e 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -3212,7 +3212,6 @@ impl<'a> Resolver<'a> { let name = path[path.len() - 1].node.name; // Make sure error reporting is deterministic. names.sort_by_key(|name| name.as_str()); - match find_best_match_for_name(names.iter(), &name.as_str(), None) { Some(found) if found != name => Some(found), _ => None, diff --git a/src/test/ui/issue-46332.rs b/src/test/ui/issue-46332.rs index 32cd5d39dc3..d094497e246 100644 --- a/src/test/ui/issue-46332.rs +++ b/src/test/ui/issue-46332.rs @@ -17,4 +17,5 @@ struct TyInt {} fn main() { TyUInt {}; + //~^ ERROR cannot find struct, variant or union type `TyUInt` in this scope }