Skip to content

Commit 2889015

Browse files
authored
Rollup merge of #54106 - flip1995:pub_checklintnameresult, r=Manishearth
Reexport CheckLintNameResult Make the enum `CheckLintNameResult` public, so that lint tools (aka Clippy) can use it together with [`LintStore::check_lint_name`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/lint/struct.LintStore.html#method.check_lint_name), to handle the case that a scoped `tool_lint` doesn't exist in the tool. This is currently not handled by the compiler: https://github.com/rust-lang/rust/blob/595345419d12c3ea860151df52f78744a31bafff/src/librustc/lint/levels.rs#L309-L314 Needed for rust-lang/rust-clippy#3161 r? @Manishearth
2 parents 40d9740 + c549e65 commit 2889015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/lint/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use ty::query::Providers;
5353
use util::nodemap::NodeMap;
5454

5555
pub use lint::context::{LateContext, EarlyContext, LintContext, LintStore,
56-
check_crate, check_ast_crate,
56+
check_crate, check_ast_crate, CheckLintNameResult,
5757
FutureIncompatibleInfo, BufferedEarlyLint};
5858

5959
/// Specification of a single lint.

0 commit comments

Comments
 (0)