File tree 1 file changed +3
-2
lines changed
tests/run-make-fulldeps/obtain-borrowck
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ impl rustc_driver::Callbacks for CompilerCalls {
102
102
println ! ( "Bodies retrieved for:" ) ;
103
103
for ( def_id, body) in bodies {
104
104
println ! ( "{}" , def_id) ;
105
- assert ! ( body. input_facts. cfg_edge. len( ) > 0 ) ;
105
+ assert ! ( body. input_facts. unwrap ( ) . cfg_edge. len( ) > 0 ) ;
106
106
}
107
107
} ) ;
108
108
@@ -127,7 +127,8 @@ thread_local! {
127
127
}
128
128
129
129
fn mir_borrowck < ' tcx > ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId ) -> ProvidedValue < ' tcx > {
130
- let body_with_facts = rustc_borrowck:: consumers:: get_body_with_borrowck_facts ( tcx, def_id) ;
130
+ let opts = ConsumerOptions :: PoloniusInputFacts ;
131
+ let body_with_facts = rustc_borrowck:: consumers:: get_body_with_borrowck_facts ( tcx, def_id, opts) ;
131
132
// SAFETY: The reader casts the 'static lifetime to 'tcx before using it.
132
133
let body_with_facts: BodyWithBorrowckFacts < ' static > =
133
134
unsafe { std:: mem:: transmute ( body_with_facts) } ;
You can’t perform that action at this time.
0 commit comments