Skip to content

Commit f982f42

Browse files
committed
resolve: make error message strings more consistent
The "first definition of ..." error string reported by add_child() looks different from similar messages reported by other functions. Fix this. Signed-off-by: Ramkumar Ramachandra <[email protected]>
1 parent 9f80591 commit f982f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ impl Resolver {
10531053
let r = child.span_for_namespace(ns);
10541054
for r.iter().advance |sp| {
10551055
self.session.span_note(*sp,
1056-
fmt!("first definition of %s %s here:",
1056+
fmt!("first definition of %s `%s` here",
10571057
namespace_error_to_str(duplicate_type),
10581058
self.session.str_of(name)));
10591059
}

0 commit comments

Comments
 (0)