File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
#![ warn( rust_2018_idioms, unused_lifetimes) ]
8
8
// warn on rustc internal lints
9
9
#![ warn( rustc:: internal) ]
10
- #![ allow( clippy:: ignored_unit_patterns) ]
11
10
12
11
// FIXME: switch to something more ergonomic here, once available.
13
12
// (Currently there is no way to opt into sysroot crates without `extern crate`.)
@@ -165,13 +164,15 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
165
164
}
166
165
}
167
166
167
+ #[ allow( clippy:: ignored_unit_patterns) ]
168
168
fn display_help ( ) {
169
169
println ! ( "{}" , help_message( ) ) ;
170
170
}
171
171
172
172
const BUG_REPORT_URL : & str = "https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml" ;
173
173
174
174
#[ allow( clippy:: too_many_lines) ]
175
+ #[ allow( clippy:: ignored_unit_patterns) ]
175
176
pub fn main ( ) {
176
177
let handler = EarlyErrorHandler :: new ( ErrorOutputType :: default ( ) ) ;
177
178
Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
2
// warn on lints, that are included in `rust-lang/rust`s bootstrap
3
3
#![ warn( rust_2018_idioms, unused_lifetimes) ]
4
- #![ allow( clippy:: ignored_unit_patterns) ]
5
4
6
5
use std:: env;
7
6
use std:: path:: PathBuf ;
8
7
use std:: process:: { self , Command } ;
9
8
10
9
use anstream:: println;
11
10
11
+ #[ allow( clippy:: ignored_unit_patterns) ]
12
12
fn show_help ( ) {
13
13
println ! ( "{}" , help_message( ) ) ;
14
14
}
15
15
16
+ #[ allow( clippy:: ignored_unit_patterns) ]
16
17
fn show_version ( ) {
17
18
let version_info = rustc_tools_util:: get_version_info!( ) ;
18
19
println ! ( "{version_info}" ) ;
You can’t perform that action at this time.
0 commit comments