@@ -87,7 +87,7 @@ fn test_can_print_warnings() {
87
87
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
88
88
let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
89
89
let sess = build_session ( sessopts, None , registry) ;
90
- assert ! ( !sess. diagnostic( ) . flags . can_emit_warnings) ;
90
+ assert ! ( !sess. diagnostic( ) . can_emit_warnings( ) ) ;
91
91
} ) ;
92
92
93
93
syntax:: with_default_globals ( || {
@@ -97,15 +97,15 @@ fn test_can_print_warnings() {
97
97
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
98
98
let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
99
99
let sess = build_session ( sessopts, None , registry) ;
100
- assert ! ( sess. diagnostic( ) . flags . can_emit_warnings) ;
100
+ assert ! ( sess. diagnostic( ) . can_emit_warnings( ) ) ;
101
101
} ) ;
102
102
103
103
syntax:: with_default_globals ( || {
104
104
let matches = optgroups ( ) . parse ( & [ "-Adead_code" . to_string ( ) ] ) . unwrap ( ) ;
105
105
let registry = errors:: registry:: Registry :: new ( & [ ] ) ;
106
106
let ( sessopts, _) = build_session_options_and_crate_config ( & matches) ;
107
107
let sess = build_session ( sessopts, None , registry) ;
108
- assert ! ( sess. diagnostic( ) . flags . can_emit_warnings) ;
108
+ assert ! ( sess. diagnostic( ) . can_emit_warnings( ) ) ;
109
109
} ) ;
110
110
}
111
111
0 commit comments