Skip to content

Commit 66aceb0

Browse files
committed
lintless
1 parent 7bfd952 commit 66aceb0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

compiler/rustc_lint/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
2222
// tidy-alphabetical-start
2323
#![allow(internal_features)]
24+
#![allow(dead_code)]
25+
#![allow(unused)]
2426
#![cfg_attr(doc, recursion_limit = "256")] // FIXME(nnethercote): will be removed by #124141
2527
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
2628
#![doc(rust_logo)]

compiler/rustc_lint/src/passes.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ macro_rules! expand_combined_late_lint_pass_method {
8484
macro_rules! expand_combined_late_lint_pass_methods {
8585
($passes:tt, [$($(#[$attr:meta])* fn $name:ident($($param:ident: $arg:ty),*);)*]) => (
8686
$(fn $name(&mut self, context: &$crate::LateContext<'tcx>, $($param: $arg),*) {
87+
return;
8788
$crate::expand_combined_late_lint_pass_method!($passes, self, $name, (context, $($param),*));
8889
})*
8990
)
@@ -92,7 +93,7 @@ macro_rules! expand_combined_late_lint_pass_methods {
9293
/// Combines multiple lints passes into a single lint pass, at compile time,
9394
/// for maximum speed. Each `check_foo` method in `$methods` within this pass
9495
/// simply calls `check_foo` once per `$pass`. Compare with
95-
/// `LateLintPassObjects`, which is similar, but combines lint passes at
96+
/// `RuntimeCombinedLateLintPass`, which is similar, but combines lint passes at
9697
/// runtime.
9798
#[macro_export]
9899
macro_rules! declare_combined_late_lint_pass {
@@ -201,6 +202,7 @@ macro_rules! expand_combined_early_lint_pass_method {
201202
macro_rules! expand_combined_early_lint_pass_methods {
202203
($passes:tt, [$($(#[$attr:meta])* fn $name:ident($($param:ident: $arg:ty),*);)*]) => (
203204
$(fn $name(&mut self, context: &$crate::EarlyContext<'_>, $($param: $arg),*) {
205+
return;
204206
$crate::expand_combined_early_lint_pass_method!($passes, self, $name, (context, $($param),*));
205207
})*
206208
)

0 commit comments

Comments
 (0)