about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/lint/context.rs2
-rw-r--r--src/librustc/lint/levels.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs
index 0d99aa2f7dd..d5247b4ce9d 100644
--- a/src/librustc/lint/context.rs
+++ b/src/librustc/lint/context.rs
@@ -417,7 +417,7 @@ impl LintStore {
                             new_name.to_string(),
                         )));
                     }
-                    CheckLintNameResult::Tool(Ok(&ids.0))
+                    CheckLintNameResult::Tool(Err((Some(&ids.0), complete_name)))
                 }
             },
             Some(&Id(ref id)) => {
diff --git a/src/librustc/lint/levels.rs b/src/librustc/lint/levels.rs
index 7e8f8f309b4..336ebe79d33 100644
--- a/src/librustc/lint/levels.rs
+++ b/src/librustc/lint/levels.rs
@@ -282,7 +282,7 @@ impl<'a> LintLevelsBuilder<'a> {
                                         .get_lint_level(lint, self.cur, Some(&specs), &sess);
                                 let msg = format!(
                                     "lint name `{}` is deprecated \
-                                     and may not have an effect in the future \
+                                     and may not have an effect in the future. \
                                      Also `cfg_attr(cargo-clippy)` won't be necessary anymore",
                                     name
                                 );