Skip to content

Commit

Permalink
resolve: shorten wording on private constructor error
Browse files Browse the repository at this point in the history
  • Loading branch information
da-x committed Oct 11, 2019
1 parent 7140c02 commit 9d11bda
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion src/librustc_resolve/lib.rs
Expand Up @@ -2401,7 +2401,7 @@ impl<'a> Resolver<'a> {
let first_field = fields.first().expect("empty field list in the map");
err.span_label(
fields.iter().fold(first_field.span, |acc, field| acc.to(field.span)),
"a tuple struct constructor is private if any of its fields is private",
"a constructor is private if any of the fields is private",
);
err
} else {
Expand Down

0 comments on commit 9d11bda

Please sign in to comment.