Skip to content

Commit 86e498c

Browse files
committed
Auto merge of #965 - RalfJung:rustup, r=RalfJung
rustup
2 parents af1a19d + 63ea13a commit 86e498c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dc45735f29788924b9fc351d100e5bf3ebdca162
1+
084beb83e0e87d673d5fabc844d28e8e8ae2ab4c

src/bin/miri-rustc-tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
4646
struct Visitor<'tcx>(TyCtxt<'tcx>);
4747
impl<'tcx, 'hir> itemlikevisit::ItemLikeVisitor<'hir> for Visitor<'tcx> {
4848
fn visit_item(&mut self, i: &'hir hir::Item) {
49-
if let hir::ItemKind::Fn(.., body_id) = i.node {
49+
if let hir::ItemKind::Fn(.., body_id) = i.kind {
5050
if i.attrs.iter().any(|attr| attr.check_name(syntax::symbol::sym::test)) {
5151
let config = MiriConfig {
5252
validate: true,

src/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
6363
ty::ParamEnv::reveal_all(),
6464
start_id,
6565
ecx.tcx.mk_substs(
66-
::std::iter::once(ty::subst::Kind::from(main_ret_ty)))
66+
::std::iter::once(ty::subst::GenericArg::from(main_ret_ty)))
6767
).unwrap();
6868
let start_mir = ecx.load_mir(start_instance.def, None)?;
6969

0 commit comments

Comments
 (0)