]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo and small mistake
authorflip1995 <9744647+flip1995@users.noreply.github.com>
Thu, 30 Aug 2018 08:28:18 +0000 (10:28 +0200)
committerManish Goregaokar <manishsmail@gmail.com>
Fri, 31 Aug 2018 07:47:09 +0000 (00:47 -0700)
src/librustc/lint/context.rs
src/librustc/lint/levels.rs

index 0d99aa2f7dd9888124d07473a71c41a59dba892d..d5247b4ce9de85b68b7543ed19dafa09e656cc46 100644 (file)
@@ -417,7 +417,7 @@ fn check_tool_name_for_backwards_compat(
                             new_name.to_string(),
                         )));
                     }
-                    CheckLintNameResult::Tool(Ok(&ids.0))
+                    CheckLintNameResult::Tool(Err((Some(&ids.0), complete_name)))
                 }
             },
             Some(&Id(ref id)) => {
index 7e8f8f309b4b15a2654d69c0e5ea60fd1cd75272..336ebe79d33abd7276eb6d20f6f427be9f82b04b 100644 (file)
@@ -282,7 +282,7 @@ pub fn push(&mut self, attrs: &[ast::Attribute]) -> BuilderPush {
                                         .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
                                 );