{rustc::lint -> rustc_lint}::internal
This commit is contained in:
parent
03dfa642d9
commit
8c12c424e2
5 changed files with 6 additions and 4 deletions
|
@ -3663,6 +3663,7 @@ dependencies = [
|
||||||
"log",
|
"log",
|
||||||
"rustc",
|
"rustc",
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
|
"rustc_error_codes",
|
||||||
"rustc_errors",
|
"rustc_errors",
|
||||||
"rustc_feature",
|
"rustc_feature",
|
||||||
"rustc_hir",
|
"rustc_hir",
|
||||||
|
|
|
@ -20,7 +20,6 @@ use syntax::sess::feature_err;
|
||||||
use rustc_error_codes::*;
|
use rustc_error_codes::*;
|
||||||
|
|
||||||
mod context;
|
mod context;
|
||||||
pub mod internal;
|
|
||||||
mod passes;
|
mod passes;
|
||||||
|
|
||||||
pub use context::add_elided_lifetime_in_path_suggestion;
|
pub use context::add_elided_lifetime_in_path_suggestion;
|
||||||
|
|
|
@ -13,6 +13,7 @@ log = "0.4"
|
||||||
unicode-security = "0.0.2"
|
unicode-security = "0.0.2"
|
||||||
rustc = { path = "../librustc" }
|
rustc = { path = "../librustc" }
|
||||||
rustc_errors = { path = "../librustc_errors" }
|
rustc_errors = { path = "../librustc_errors" }
|
||||||
|
rustc_error_codes = { path = "../librustc_error_codes" }
|
||||||
rustc_hir = { path = "../librustc_hir" }
|
rustc_hir = { path = "../librustc_hir" }
|
||||||
rustc_target = { path = "../librustc_target" }
|
rustc_target = { path = "../librustc_target" }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
//! Some lints that are only useful in the compiler or crates that use compiler internals, such as
|
//! Some lints that are only useful in the compiler or crates that use compiler internals, such as
|
||||||
//! Clippy.
|
//! Clippy.
|
||||||
|
|
||||||
use crate::lint::context::{EarlyContext, LateContext, LintContext};
|
use crate::lint::{EarlyContext, LateContext, LintContext};
|
||||||
use crate::lint::passes::{EarlyLintPass, LateLintPass};
|
use crate::lint::{EarlyLintPass, LateLintPass};
|
||||||
use rustc_data_structures::fx::FxHashMap;
|
use rustc_data_structures::fx::FxHashMap;
|
||||||
use rustc_errors::Applicability;
|
use rustc_errors::Applicability;
|
||||||
use rustc_hir::{GenericArg, HirId, MutTy, Mutability, Path, PathSegment, QPath, Ty, TyKind};
|
use rustc_hir::{GenericArg, HirId, MutTy, Mutability, Path, PathSegment, QPath, Ty, TyKind};
|
|
@ -26,6 +26,7 @@ extern crate rustc_session;
|
||||||
mod array_into_iter;
|
mod array_into_iter;
|
||||||
pub mod builtin;
|
pub mod builtin;
|
||||||
mod early;
|
mod early;
|
||||||
|
mod internal;
|
||||||
mod late;
|
mod late;
|
||||||
mod levels;
|
mod levels;
|
||||||
mod non_ascii_idents;
|
mod non_ascii_idents;
|
||||||
|
@ -53,10 +54,10 @@ use lint::LintId;
|
||||||
|
|
||||||
use array_into_iter::ArrayIntoIter;
|
use array_into_iter::ArrayIntoIter;
|
||||||
use builtin::*;
|
use builtin::*;
|
||||||
|
use internal::*;
|
||||||
use non_ascii_idents::*;
|
use non_ascii_idents::*;
|
||||||
use nonstandard_style::*;
|
use nonstandard_style::*;
|
||||||
use redundant_semicolon::*;
|
use redundant_semicolon::*;
|
||||||
use rustc::lint::internal::*;
|
|
||||||
use types::*;
|
use types::*;
|
||||||
use unused::*;
|
use unused::*;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue