Skip to content

Commit 4b51d2b

Browse files
committed
Rename LintArray to LintVec
1 parent ad65326 commit 4b51d2b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

compiler/rustc_lint/src/foreign_modules.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ use rustc_span::{sym, Span, Symbol};
99
use rustc_target::abi::FIRST_VARIANT;
1010

1111
use crate::lints::{BuiltinClashingExtern, BuiltinClashingExternSub};
12-
use crate::{types, LintArray};
12+
use crate::{types, LintVec};
1313

1414
pub(crate) fn provide(providers: &mut Providers) {
1515
*providers = Providers { clashing_extern_declarations, ..*providers };
1616
}
1717

18-
pub(crate) fn get_lints() -> LintArray {
18+
pub(crate) fn get_lints() -> LintVec {
1919
vec![CLASHING_EXTERN_DECLARATIONS]
2020
}
2121

compiler/rustc_lint/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub use late::{check_crate, late_lint_mod, unerased_lint_store};
130130
pub use passes::{EarlyLintPass, LateLintPass};
131131
pub use rustc_session::lint::Level::{self, *};
132132
pub use rustc_session::lint::{BufferedEarlyLint, FutureIncompatibleInfo, Lint, LintId};
133-
pub use rustc_session::lint::{LintArray, LintPass};
133+
pub use rustc_session::lint::{LintPass, LintVec};
134134

135135
fluent_messages! { "../messages.ftl" }
136136

compiler/rustc_lint/src/passes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ macro_rules! declare_combined_late_lint_pass {
111111
}
112112
}
113113

114-
$v fn get_lints() -> $crate::LintArray {
114+
$v fn get_lints() -> $crate::LintVec {
115115
let mut lints = Vec::new();
116116
$(lints.extend_from_slice(&$pass::get_lints());)*
117117
lints
@@ -226,7 +226,7 @@ macro_rules! declare_combined_early_lint_pass {
226226
}
227227
}
228228

229-
$v fn get_lints() -> $crate::LintArray {
229+
$v fn get_lints() -> $crate::LintVec {
230230
let mut lints = Vec::new();
231231
$(lints.extend_from_slice(&$pass::get_lints());)*
232232
lints

compiler/rustc_lint_defs/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ macro_rules! declare_tool_lint {
785785
);
786786
}
787787

788-
pub type LintArray = Vec<&'static Lint>;
788+
pub type LintVec = Vec<&'static Lint>;
789789

790790
pub trait LintPass {
791791
fn name(&self) -> &'static str;
@@ -799,7 +799,7 @@ macro_rules! impl_lint_pass {
799799
fn name(&self) -> &'static str { stringify!($ty) }
800800
}
801801
impl $ty {
802-
pub fn get_lints() -> $crate::LintArray { vec![$($lint),*] }
802+
pub fn get_lints() -> $crate::LintVec { vec![$($lint),*] }
803803
}
804804
};
805805
}

0 commit comments

Comments
 (0)