1
Fork 0

Address PR comments

This commit is contained in:
Oliver Schneider 2017-03-28 13:06:01 +02:00
parent ca701d7aeb
commit 3a5567bad4
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
6 changed files with 26 additions and 16 deletions

View file

@ -5160,9 +5160,7 @@ impl<'a> Parser<'a> {
`pub(in path::to::module)`: visible only on the specified path"##;
let path = self.parse_path(PathStyle::Mod)?;
let path_span = self.prev_span;
let help_msg = format!("to make this visible only to module `{}`, add `in` before \
the path:",
path);
let help_msg = format!("make this visible only to module `{}` with `in`:", path);
self.expect(&token::CloseDelim(token::Paren))?; // `)`
let mut err = self.span_fatal_help(path_span, &msg, &suggestion);
err.span_suggestion(path_span, &help_msg, format!("in {}", path));