diff options
| author | Samy Kacimi <samy.kacimi@protonmail.ch> | 2019-07-15 23:23:39 +0200 |
|---|---|---|
| committer | Samy Kacimi <samy.kacimi@protonmail.ch> | 2019-07-16 00:07:30 +0200 |
| commit | 7ddafaf6f95370935be339af71974da34752f1b5 (patch) | |
| tree | eebf449d74302f48bbf5236f8ba7e7e4eb176ca7 /src/libsyntax/parse | |
| parent | 4b65a86ebace8600c8e269e8bfe3365cdc460e68 (diff) | |
| download | rust-7ddafaf6f95370935be339af71974da34752f1b5.tar.gz rust-7ddafaf6f95370935be339af71974da34752f1b5.zip | |
normalize use of backticks in compiler messages for libsyntax/parse
https://github.com/rust-lang/rust/issues/60532
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/diagnostics.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index b28d48b9445..1758d0b0bb9 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -226,7 +226,7 @@ impl<'a> Parser<'a> { fn parse_unsuffixed_lit(&mut self) -> PResult<'a, ast::Lit> { let lit = self.parse_lit()?; - debug!("Checking if {:?} is unusuffixed.", lit); + debug!("checking if {:?} is unusuffixed", lit); if !lit.node.is_unsuffixed() { let msg = "suffixed literals are not allowed in attributes"; diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs index 676c87f9daa..0e88a0ee289 100644 --- a/src/libsyntax/parse/diagnostics.rs +++ b/src/libsyntax/parse/diagnostics.rs @@ -919,7 +919,7 @@ impl<'a> Parser<'a> { Applicability::MaybeIncorrect, ); } else { - err.note("#![feature(type_ascription)] lets you annotate an \ + err.note("`#![feature(type_ascription)]` lets you annotate an \ expression with a type: `<expr>: <type>`") .span_note( lhs_span, diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index d0c4e8d6a56..7be8e57c7f8 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -443,7 +443,7 @@ impl<'a> StringReader<'a> { let is_beginning_of_file = self.pos == self.source_file.start_pos; if is_beginning_of_file { - debug!("Skipping a shebang"); + debug!("skipping a shebang"); let start = self.pos; while !self.ch_is('\n') && !self.is_eof() { self.bump(); |
