Skip to content

Commit b625e56

Browse files
committed
Rustup to rustc 1.37.0-nightly (3ade426ed 2019-05-30)
1 parent 610f377 commit b625e56

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ pub struct FunctionCx<'a, 'tcx: 'a, B: Backend> {
569569
pub pointer_type: Type, // Cached from module
570570

571571
pub instance: Instance<'tcx>,
572-
pub mir: &'tcx Mir<'tcx>,
572+
pub mir: &'tcx Body<'tcx>,
573573

574574
pub bcx: FunctionBuilder<'a>,
575575
pub ebb_map: HashMap<BasicBlock, Ebb>,

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl<'a, 'mir, 'tcx> Machine<'a, 'mir, 'tcx> for TransPlaceInterpreter {
359359
_: &[OpTy<'tcx>],
360360
_: Option<PlaceTy<'tcx>>,
361361
_: Option<BasicBlock>,
362-
) -> EvalResult<'tcx, Option<&'mir Mir<'tcx>>> {
362+
) -> EvalResult<'tcx, Option<&'mir Body<'tcx>>> {
363363
panic!();
364364
}
365365

src/debuginfo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<'a, 'b, 'tcx: 'b> FunctionDebugContext<'a, 'tcx> {
229229
pub fn new(
230230
tcx: TyCtxt<'b, 'tcx, 'tcx>,
231231
debug_context: &'a mut DebugContext<'tcx>,
232-
mir: &Mir,
232+
mir: &Body,
233233
name: &str,
234234
_sig: &Signature,
235235
) -> Self {
@@ -268,7 +268,7 @@ impl<'a, 'b, 'tcx: 'b> FunctionDebugContext<'a, 'tcx> {
268268
&mut self,
269269
tcx: TyCtxt,
270270
context: &Context,
271-
isa: &cranelift::codegen::isa::TargetIsa,
271+
isa: &dyn cranelift::codegen::isa::TargetIsa,
272272
source_info_set: &indexmap::IndexSet<SourceInfo>,
273273
) {
274274
let line_program = &mut self.debug_context.dwarf.unit.line_program;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ fn target_triple(sess: &Session) -> target_lexicon::Triple {
237237
target.parse().unwrap()
238238
}
239239

240-
fn build_isa(sess: &Session) -> Box<isa::TargetIsa + 'static> {
240+
fn build_isa(sess: &Session) -> Box<dyn isa::TargetIsa + 'static> {
241241
let mut flags_builder = settings::builder();
242242
flags_builder.enable("is_pic").unwrap();
243243
flags_builder.set("probestack_enabled", "false").unwrap(); // ___cranelift_probestack is not provided

src/pretty_clif.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'a> FuncWriter for &'a CommentWriter {
117117
w: &mut dyn fmt::Write,
118118
_func: &Function,
119119
entity: AnyEntity,
120-
value: &fmt::Display,
120+
value: &dyn fmt::Display,
121121
) -> fmt::Result {
122122
write!(w, " {} = {}", entity, value)?;
123123

0 commit comments

Comments
 (0)