@@ -2,7 +2,7 @@ extern crate getopts;
22
33use crate :: interface:: parse_cfgspecs;
44
5- use rustc:: lint;
5+ use rustc:: lint:: Level ;
66use rustc:: middle:: cstore;
77use rustc:: session:: config:: { build_configuration, build_session_options, to_crate_config} ;
88use rustc:: session:: config:: { rustc_optgroups, ErrorOutputType , ExternLocation , Options , Passes } ;
@@ -186,24 +186,24 @@ fn test_lints_tracking_hash_different_values() {
186186 let mut v3 = Options :: default ( ) ;
187187
188188 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 ) ,
193193 ] ;
194194
195195 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 ) ,
200200 ] ;
201201
202202 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 ) ,
207207 ] ;
208208
209209 assert ! ( v1. dep_tracking_hash( ) != v2. dep_tracking_hash( ) ) ;
@@ -222,17 +222,17 @@ fn test_lints_tracking_hash_different_construction_order() {
222222 let mut v2 = Options :: default ( ) ;
223223
224224 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 ) ,
229229 ] ;
230230
231231 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 ) ,
236236 ] ;
237237
238238 assert_eq ! ( v1. dep_tracking_hash( ) , v2. dep_tracking_hash( ) ) ;
0 commit comments