File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use driver;
16
16
use rustc_lint;
17
17
use rustc_resolve as resolve;
18
18
use rustc_typeck:: middle:: lang_items;
19
+ use rustc_typeck:: middle:: free_region:: FreeRegionMap ;
19
20
use rustc_typeck:: middle:: region:: { self , CodeExtent , DestructionScopeData } ;
20
21
use rustc_typeck:: middle:: resolve_lifetime;
21
22
use rustc_typeck:: middle:: stability;
@@ -138,7 +139,8 @@ fn test_env<F>(source_string: &str,
138
139
stability:: Index :: new ( krate) ) ;
139
140
let infcx = infer:: new_infer_ctxt ( & tcx) ;
140
141
body ( Env { infcx : & infcx } ) ;
141
- infcx. resolve_regions_and_report_errors ( ast:: CRATE_NODE_ID ) ;
142
+ let free_regions = FreeRegionMap :: new ( ) ;
143
+ infcx. resolve_regions_and_report_errors ( & free_regions, ast:: CRATE_NODE_ID ) ;
142
144
assert_eq ! ( tcx. sess. err_count( ) , expected_err_count) ;
143
145
}
144
146
You can’t perform that action at this time.
0 commit comments