File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_smir/src/rustc_smir Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ use rustc_middle::mir;
9
9
use rustc_middle:: mir:: visit:: MutVisitor ;
10
10
use rustc_middle:: ty:: { self , TyCtxt } ;
11
11
12
- use crate :: rustc_smir:: { Stable , Tables } ;
13
- use crate :: stable_mir;
12
+ use crate :: rustc_smir:: { Bridge , Tables } ;
14
13
15
14
/// Builds a monomorphic body for a given instance.
16
15
pub ( crate ) struct BodyBuilder < ' tcx > {
@@ -31,7 +30,7 @@ impl<'tcx> BodyBuilder<'tcx> {
31
30
/// Build a stable monomorphic body for a given instance based on the MIR body.
32
31
///
33
32
/// All constants are also evaluated.
34
- pub ( crate ) fn build ( mut self , tables : & mut Tables < ' tcx > ) -> stable_mir :: mir:: Body {
33
+ pub ( crate ) fn build < B : Bridge > ( mut self , tables : & mut Tables < ' tcx , B > ) -> mir:: Body < ' tcx > {
35
34
let body = tables. tcx . instance_mir ( self . instance . def ) . clone ( ) ;
36
35
let mono_body = if !self . instance . args . is_empty ( )
37
36
// Without the `generic_const_exprs` feature gate, anon consts in signatures do not
@@ -50,7 +49,8 @@ impl<'tcx> BodyBuilder<'tcx> {
50
49
// Already monomorphic.
51
50
body
52
51
} ;
53
- mono_body. stable ( tables)
52
+
53
+ mono_body
54
54
}
55
55
}
56
56
You can’t perform that action at this time.
0 commit comments