Stream: t-compiler/const-eval

Topic: miri update


RalfJ (Nov 05 2018 at 07:46, on Zulip):

@Oli uh, miri shows strange compile failures even after renaming value to immediate...

error[E0277]: the trait bound `&mut rustc_mir::interpret::EvalContext<'a, 'mir, 'tcx, Evaluator<'tcx>>: rustc_target::abi::HasDataLayout` is not satisfied
   --> src/fn_call.rs:145:55
    |
145 |                 let size = self.read_scalar(args[0])?.to_usize(&self)?;
    |                                                       ^^^^^^^^ the trait `rustc_target::abi::HasDataLayout` is not implemented for `&mut rustc_mir::interpret::EvalContext<'a, 'mir, 'tcx, Evaluator<'tcx>>`
    |
    = help: the following implementations were found:
              <rustc_mir::interpret::EvalContext<'a, 'mir, 'tcx, M> as rustc_target::abi::HasDataLayout>
RalfJ (Nov 05 2018 at 07:46, on Zulip):

oh, @eddyb broke it :P

RalfJ (Nov 05 2018 at 07:47, on Zulip):

https://github.com/rust-lang/rust/pull/55665

eddyb (Nov 05 2018 at 08:01, on Zulip):

yeah just remove the &

eddyb (Nov 05 2018 at 08:01, on Zulip):

cleanup!

RalfJ (Nov 05 2018 at 09:29, on Zulip):

and TONS of merge conflicts with #55549^^

Last update: Nov 15 2019 at 20:25UTC