diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-16 11:38:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-16 11:38:58 -0400 |
| commit | 94b16d4bd000a3ca216092f85968b753e3363a50 (patch) | |
| tree | 5efe4445d1e1a770205c47960c79c0af34819f23 /src/libsyntax/parse | |
| parent | 4226f14cbb1ecfbc7c1ff7e6c4b7030b1470a58a (diff) | |
| parent | 7ddafaf6f95370935be339af71974da34752f1b5 (diff) | |
| download | rust-94b16d4bd000a3ca216092f85968b753e3363a50.tar.gz rust-94b16d4bd000a3ca216092f85968b753e3363a50.zip | |
Rollup merge of #62703 - fakenine:normalize_use_of_backticks_compiler_messages_p6, r=eddyb
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(); |
