File tree 8 files changed +13
-14
lines changed
rust-analyzer/crates/syntax/src/tests
8 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 121
121
#![ deny( unsafe_op_in_unsafe_fn) ]
122
122
#![ deny( fuzzy_provenance_casts) ]
123
123
124
- extern crate test;
125
-
126
124
mod alloc;
127
125
mod any;
128
126
mod array;
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ use core::num::flt2dec::{
8
8
} ;
9
9
use core:: num:: fmt:: { Formatted , Part } ;
10
10
11
- pub use test:: Bencher ;
12
-
13
11
mod estimator;
14
12
mod strategy {
15
13
mod dragon;
Original file line number Diff line number Diff line change 9
9
// Progress on this is tracked in #84187.
10
10
11
11
#![ allow( dead_code) ]
12
+ #![ allow( unused_imports) ]
12
13
13
14
pub mod alloc;
14
15
pub mod small_c_string;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ mod in_fn_test {
19
19
}
20
20
21
21
mod blurg {
22
- pub use std::cmp::Ordering::*; // ok, re-export
22
+ // ok, re-export
23
23
}
24
24
25
25
fn main() {
Original file line number Diff line number Diff line change
1
+ error: unused import: `std::cmp::Ordering::*`
2
+ --> $DIR/enum_glob_use.rs:22:13
3
+ |
4
+ LL | pub use std::cmp::Ordering::*; // ok, re-export
5
+ | ^^^^^^^^^^^^^^^^^^^^^
6
+ |
7
+ = note: `-D unused-imports` implied by `-D warnings`
8
+ = help: to override `-D warnings` add `#[allow(unused_imports)]`
9
+
1
10
error: usage of wildcard import for enum variants
2
11
--> $DIR/enum_glob_use.rs:5:5
3
12
|
@@ -19,5 +28,5 @@ error: usage of wildcard import for enum variants
19
28
LL | use crate::Enum::*;
20
29
| ^^^^^^^^^^^^^^ help: try: `crate::Enum::Foo`
21
30
22
- error: aborting due to 3 previous errors
31
+ error: aborting due to 4 previous errors
23
32
Original file line number Diff line number Diff line change 1
1
#![ allow( dead_code) ]
2
+ #![ allow( unused_imports) ]
2
3
3
4
#[ macro_use]
4
5
mod macros;
Original file line number Diff line number Diff line change @@ -450,7 +450,6 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> String {
450
450
[ ident] => { $crate :: SyntaxKind :: IDENT } ;
451
451
[ shebang] => { $crate :: SyntaxKind :: SHEBANG } ;
452
452
}
453
- pub use T ;
454
453
} ;
455
454
456
455
sourcegen:: add_preamble ( "sourcegen_ast" , sourcegen:: reformat ( ast. to_string ( ) ) )
Original file line number Diff line number Diff line change @@ -142,13 +142,6 @@ pub enum HexLiteralCase {
142
142
Lower ,
143
143
}
144
144
145
- #[ config_type]
146
- pub enum ReportTactic {
147
- Always ,
148
- Unnumbered ,
149
- Never ,
150
- }
151
-
152
145
/// What Rustfmt should emit. Mostly corresponds to the `--emit` command line
153
146
/// option.
154
147
#[ config_type]
You can’t perform that action at this time.
0 commit comments