@@ -2,7 +2,7 @@ extern crate getopts;
2
2
3
3
use crate :: interface:: parse_cfgspecs;
4
4
5
- use rustc:: lint;
5
+ use rustc:: lint:: Level ;
6
6
use rustc:: middle:: cstore;
7
7
use rustc:: session:: config:: { build_configuration, build_session_options, to_crate_config} ;
8
8
use rustc:: session:: config:: { rustc_optgroups, ErrorOutputType , ExternLocation , Options , Passes } ;
@@ -186,24 +186,24 @@ fn test_lints_tracking_hash_different_values() {
186
186
let mut v3 = Options :: default ( ) ;
187
187
188
188
v1. lint_opts = vec ! [
189
- ( String :: from( "a" ) , lint :: Allow ) ,
190
- ( String :: from( "b" ) , lint :: Warn ) ,
191
- ( String :: from( "c" ) , lint :: Deny ) ,
192
- ( String :: from( "d" ) , lint :: Forbid ) ,
189
+ ( String :: from( "a" ) , Level :: Allow ) ,
190
+ ( String :: from( "b" ) , Level :: Warn ) ,
191
+ ( String :: from( "c" ) , Level :: Deny ) ,
192
+ ( String :: from( "d" ) , Level :: Forbid ) ,
193
193
] ;
194
194
195
195
v2. lint_opts = vec ! [
196
- ( String :: from( "a" ) , lint :: Allow ) ,
197
- ( String :: from( "b" ) , lint :: Warn ) ,
198
- ( String :: from( "X" ) , lint :: Deny ) ,
199
- ( String :: from( "d" ) , lint :: Forbid ) ,
196
+ ( String :: from( "a" ) , Level :: Allow ) ,
197
+ ( String :: from( "b" ) , Level :: Warn ) ,
198
+ ( String :: from( "X" ) , Level :: Deny ) ,
199
+ ( String :: from( "d" ) , Level :: Forbid ) ,
200
200
] ;
201
201
202
202
v3. lint_opts = vec ! [
203
- ( String :: from( "a" ) , lint :: Allow ) ,
204
- ( String :: from( "b" ) , lint :: Warn ) ,
205
- ( String :: from( "c" ) , lint :: Forbid ) ,
206
- ( String :: from( "d" ) , lint :: Deny ) ,
203
+ ( String :: from( "a" ) , Level :: Allow ) ,
204
+ ( String :: from( "b" ) , Level :: Warn ) ,
205
+ ( String :: from( "c" ) , Level :: Forbid ) ,
206
+ ( String :: from( "d" ) , Level :: Deny ) ,
207
207
] ;
208
208
209
209
assert ! ( v1. dep_tracking_hash( ) != v2. dep_tracking_hash( ) ) ;
@@ -222,17 +222,17 @@ fn test_lints_tracking_hash_different_construction_order() {
222
222
let mut v2 = Options :: default ( ) ;
223
223
224
224
v1. lint_opts = vec ! [
225
- ( String :: from( "a" ) , lint :: Allow ) ,
226
- ( String :: from( "b" ) , lint :: Warn ) ,
227
- ( String :: from( "c" ) , lint :: Deny ) ,
228
- ( String :: from( "d" ) , lint :: Forbid ) ,
225
+ ( String :: from( "a" ) , Level :: Allow ) ,
226
+ ( String :: from( "b" ) , Level :: Warn ) ,
227
+ ( String :: from( "c" ) , Level :: Deny ) ,
228
+ ( String :: from( "d" ) , Level :: Forbid ) ,
229
229
] ;
230
230
231
231
v2. lint_opts = vec ! [
232
- ( String :: from( "a" ) , lint :: Allow ) ,
233
- ( String :: from( "c" ) , lint :: Deny ) ,
234
- ( String :: from( "b" ) , lint :: Warn ) ,
235
- ( String :: from( "d" ) , lint :: Forbid ) ,
232
+ ( String :: from( "a" ) , Level :: Allow ) ,
233
+ ( String :: from( "c" ) , Level :: Deny ) ,
234
+ ( String :: from( "b" ) , Level :: Warn ) ,
235
+ ( String :: from( "d" ) , Level :: Forbid ) ,
236
236
] ;
237
237
238
238
assert_eq ! ( v1. dep_tracking_hash( ) , v2. dep_tracking_hash( ) ) ;
0 commit comments