1
Fork 0

Remove rustc_lint_defs::lint_array

This commit is contained in:
DaniPopes 2023-09-28 16:00:38 +02:00
parent c01d8d238c
commit f1b7484160
No known key found for this signature in database
GPG key ID: 0F09640DDB7AC692
11 changed files with 23 additions and 36 deletions

View file

@ -111,7 +111,7 @@ macro_rules! declare_combined_late_lint_pass {
}
}
$v fn get_lints() -> $crate::LintArray {
$v fn get_lints() -> $crate::LintVec {
let mut lints = Vec::new();
$(lints.extend_from_slice(&$pass::get_lints());)*
lints
@ -226,7 +226,7 @@ macro_rules! declare_combined_early_lint_pass {
}
}
$v fn get_lints() -> $crate::LintArray {
$v fn get_lints() -> $crate::LintVec {
let mut lints = Vec::new();
$(lints.extend_from_slice(&$pass::get_lints());)*
lints