From: flip1995 <9744647+flip1995@users.noreply.github.com> Date: Thu, 30 Aug 2018 08:28:18 +0000 (+0200) Subject: Fix typo and small mistake X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9cbe5182168e3240234ab368b6d26242cfb42029;p=rust.git Fix typo and small mistake --- 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 @@ 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)) => { 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 @@ 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 );