rustc: Fix typo in error message
This commit is contained in:
parent
d7ba59eb6e
commit
e7409859ce
1 changed files with 2 additions and 2 deletions
|
@ -644,10 +644,10 @@ fn visit_local_with_scope(e: @env, loc: @local, sc:scopes, v:vt<scopes>) {
|
||||||
alt lookup_in_scope(*e, sc, loc.span, path_to_ident(an_ident),
|
alt lookup_in_scope(*e, sc, loc.span, path_to_ident(an_ident),
|
||||||
ns_val, false) {
|
ns_val, false) {
|
||||||
some(ast::def_variant(enum_id,variant_id)) {
|
some(ast::def_variant(enum_id,variant_id)) {
|
||||||
// Declaration shadows a enum that's in scope.
|
// Declaration shadows an enum that's in scope.
|
||||||
// That's an error.
|
// That's an error.
|
||||||
e.sess.span_err(loc.span,
|
e.sess.span_err(loc.span,
|
||||||
#fmt("declaration of `%s` shadows a enum that's in scope",
|
#fmt("declaration of `%s` shadows an enum that's in scope",
|
||||||
path_to_ident(an_ident)));
|
path_to_ident(an_ident)));
|
||||||
}
|
}
|
||||||
_ {}
|
_ {}
|
||||||
|
|
Loading…
Reference in a new issue