File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub fn run(update_mode: UpdateMode) {
2929 false ,
3030 update_mode == UpdateMode :: Change ,
3131 || {
32- format ! ( "pub static ref ALL_LINTS: Vec<Lint> = vec!{:#?}; " , sorted_usable_lints)
32+ format ! ( "vec!{:#?}" , sorted_usable_lints)
3333 . lines ( )
3434 . map ( ToString :: to_string)
3535 . collect :: < Vec < _ > > ( )
Original file line number Diff line number Diff line change 11#![ feature( rustc_private) ]
2+ #![ feature( once_cell) ]
23#![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
34// warn on lints, that are included in `rust-lang/rust`s bootstrap
45#![ warn( rust_2018_idioms, unused_lifetimes) ]
Original file line number Diff line number Diff line change 1- //! This file is managed by `cargo dev update_lints`. Do not edit.
1+ //! This file is managed by `cargo dev update_lints`. Do not edit or format this file .
22
3- use lazy_static :: lazy_static ;
3+ use std :: lazy :: SyncLazy ;
44
55pub mod lint;
66pub use lint:: Level ;
77pub use lint:: Lint ;
88pub use lint:: LINT_LEVELS ;
99
10- lazy_static ! {
10+ #[ rustfmt:: skip]
11+ pub static ALL_LINTS : SyncLazy < Vec < Lint > > = SyncLazy :: new ( || {
1112// begin lint list, do not remove this comment, it’s used in `update_lints`
12- pub static ref ALL_LINTS : Vec < Lint > = vec![
13+ vec ! [
1314 Lint {
1415 name: "absurd_extreme_comparisons" ,
1516 group: "correctness" ,
@@ -2831,6 +2832,6 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
28312832 deprecation: None ,
28322833 module: "methods" ,
28332834 } ,
2834- ] ;
2835+ ]
28352836// end lint list, do not remove this comment, it’s used in `update_lints`
2836- }
2837+ } ) ;
You can’t perform that action at this time.
0 commit comments