Skip to content

Commit 9cbe518

Browse files
flip1995Manishearth
authored andcommitted
Fix typo and small mistake
1 parent b776579 commit 9cbe518

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/librustc/lint/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ impl LintStore {
417417
new_name.to_string(),
418418
)));
419419
}
420-
CheckLintNameResult::Tool(Ok(&ids.0))
420+
CheckLintNameResult::Tool(Err((Some(&ids.0), complete_name)))
421421
}
422422
},
423423
Some(&Id(ref id)) => {

Diff for: src/librustc/lint/levels.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<'a> LintLevelsBuilder<'a> {
282282
.get_lint_level(lint, self.cur, Some(&specs), &sess);
283283
let msg = format!(
284284
"lint name `{}` is deprecated \
285-
and may not have an effect in the future \
285+
and may not have an effect in the future. \
286286
Also `cfg_attr(cargo-clippy)` won't be necessary anymore",
287287
name
288288
);

0 commit comments

Comments
 (0)