about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-01 09:55:34 +0200
committerGitHub <noreply@github.com>2019-10-01 09:55:34 +0200
commit24a84fae34a3d4eff2dd631c65365d20a6e11b04 (patch)
tree74173f5c5101bdc6a83fb4a0af5e5fdfed52347f /src/libsyntax/parse
parentb8c5d3a42771d6d7f3cade94e2e1637f72c97a0d (diff)
parent33ed03fea0106ad76314aa7e616c199996418737 (diff)
downloadrust-24a84fae34a3d4eff2dd631c65365d20a6e11b04.tar.gz
rust-24a84fae34a3d4eff2dd631c65365d20a6e11b04.zip
Rollup merge of #64907 - alexreg:tidy-up, r=Mark-Simulacrum
A small amount of tidying-up factored out from PR #64648

As requested by @Mark-Simulacrum, I put this in a separate commit to make it easier to review. (As far as I can tell, no violations of the policy here, and they are simply in a separate PR because they're not directly related to the import of that PR.)

r? @Mark-Simulacrum
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs
index 66add869359..ac3feadce3a 100644
--- a/src/libsyntax/parse/lexer/mod.rs
+++ b/src/libsyntax/parse/lexer/mod.rs
@@ -47,7 +47,7 @@ impl<'a> StringReader<'a> {
                source_file: Lrc<syntax_pos::SourceFile>,
                override_span: Option<Span>) -> Self {
         if source_file.src.is_none() {
-            sess.span_diagnostic.bug(&format!("Cannot lex source_file without source: {}",
+            sess.span_diagnostic.bug(&format!("cannot lex `source_file` without source: {}",
                                               source_file.name));
         }