We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 783139b commit 709ddbaCopy full SHA for 709ddba
src/librustc_session/lint.rs
@@ -347,14 +347,14 @@ pub trait LintPass {
347
fn name(&self) -> &'static str;
348
}
349
350
-/// Implements `LintPass for $name` with the given list of `Lint` statics.
+/// Implements `LintPass for $ty` with the given list of `Lint` statics.
351
#[macro_export]
352
macro_rules! impl_lint_pass {
353
- ($name:ident => [$($lint:expr),* $(,)?]) => {
354
- impl $crate::lint::LintPass for $name {
355
- fn name(&self) -> &'static str { stringify!($name) }
+ ($ty:ty => [$($lint:expr),* $(,)?]) => {
+ impl $crate::lint::LintPass for $ty {
+ fn name(&self) -> &'static str { stringify!($ty) }
356
357
- impl $name {
+ impl $ty {
358
pub fn get_lints() -> $crate::lint::LintArray { $crate::lint_array!($($lint),*) }
359
360
};
0 commit comments