diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-12-07 14:18:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-12-07 19:29:31 +1100 |
| commit | ac1e69c9033a33e374f1dd91b3e4cd54e1c0033f (patch) | |
| tree | 69a1c73beb90ff62ea92a22791e635fa15356b91 /compiler/rustc_lint/src/passes.rs | |
| parent | 0c844730d3f7f7d5d3f01a35b67fa5814ee208ee (diff) | |
| download | rust-ac1e69c9033a33e374f1dd91b3e4cd54e1c0033f.tar.gz rust-ac1e69c9033a33e374f1dd91b3e4cd54e1c0033f.zip | |
Add some useful comments.
Diffstat (limited to 'compiler/rustc_lint/src/passes.rs')
| -rw-r--r-- | compiler/rustc_lint/src/passes.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/passes.rs b/compiler/rustc_lint/src/passes.rs index c423765b644..312dbcd68bd 100644 --- a/compiler/rustc_lint/src/passes.rs +++ b/compiler/rustc_lint/src/passes.rs @@ -73,6 +73,8 @@ macro_rules! declare_late_lint_pass { ) } +// Declare the `LateLintPass` trait, which contains empty default definitions +// for all the `check_*` methods. late_lint_methods!(declare_late_lint_pass, []); impl LateLintPass<'_> for HardwiredLints {} @@ -176,6 +178,8 @@ macro_rules! declare_early_lint_pass { ) } +// Declare the `EarlyLintPass` trait, which contains empty default definitions +// for all the `check_*` methods. early_lint_methods!(declare_early_lint_pass, []); #[macro_export] |
