@@ -613,8 +613,8 @@ mod test {
613
613
alt getopts:: getopts ( [ "--test" ] , opts ( ) ) {
614
614
ok ( m) { m }
615
615
} ;
616
- let sessopts = build_session_options ( match ) ;
617
- let sess = build_session ( sessopts, "" ) ;
616
+ let sessopts = build_session_options ( match , diagnostic :: emit ) ;
617
+ let sess = build_session ( sessopts, "" , diagnostic :: emit ) ;
618
618
let cfg = build_configuration ( sess, "whatever" , "whatever" ) ;
619
619
assert ( attr:: contains_name ( cfg, "test" ) ) ;
620
620
}
@@ -627,8 +627,8 @@ mod test {
627
627
alt getopts:: getopts ( [ "--test" , "--cfg=test" ] , opts ( ) ) {
628
628
ok ( m) { m }
629
629
} ;
630
- let sessopts = build_session_options ( match ) ;
631
- let sess = build_session ( sessopts, "" ) ;
630
+ let sessopts = build_session_options ( match , diagnostic :: emit ) ;
631
+ let sess = build_session ( sessopts, "" , diagnostic :: emit ) ;
632
632
let cfg = build_configuration ( sess, "whatever" , "whatever" ) ;
633
633
let test_items = attr:: find_meta_items_by_name ( cfg, "test" ) ;
634
634
assert ( vec:: len ( test_items) == 1 u) ;
0 commit comments