Remove rustc_lint_defs::lint_array
This commit is contained in:
parent
c01d8d238c
commit
f1b7484160
11 changed files with 23 additions and 36 deletions
|
@ -5,19 +5,18 @@ use rustc_hir::def::DefKind;
|
|||
use rustc_middle::query::Providers;
|
||||
use rustc_middle::ty::layout::LayoutError;
|
||||
use rustc_middle::ty::{self, Instance, Ty, TyCtxt};
|
||||
use rustc_session::lint::{lint_array, LintArray};
|
||||
use rustc_span::{sym, Span, Symbol};
|
||||
use rustc_target::abi::FIRST_VARIANT;
|
||||
|
||||
use crate::lints::{BuiltinClashingExtern, BuiltinClashingExternSub};
|
||||
use crate::types;
|
||||
use crate::{types, LintVec};
|
||||
|
||||
pub(crate) fn provide(providers: &mut Providers) {
|
||||
*providers = Providers { clashing_extern_declarations, ..*providers };
|
||||
}
|
||||
|
||||
pub(crate) fn get_lints() -> LintArray {
|
||||
lint_array!(CLASHING_EXTERN_DECLARATIONS)
|
||||
pub(crate) fn get_lints() -> LintVec {
|
||||
vec![CLASHING_EXTERN_DECLARATIONS]
|
||||
}
|
||||
|
||||
fn clashing_extern_declarations(tcx: TyCtxt<'_>, (): ()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue