Skip to content

Commit

Permalink
Fix typo and small mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 authored and Manishearth committed Aug 31, 2018
1 parent b776579 commit 9cbe518
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/lint/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/lint/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 9cbe518

Please sign in to comment.