This commit is contained in:
Yuki Okushi
2020-01-05 17:53:45 +09:00
committed by Adam Perry
parent 0a3f460d69
commit ebacb8ae4e
8 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
0ec370670220b712b042ee09aab067ec7e5878d5
093241deae70ba38413aff823b31c23731debf14
+1 -1
View File
@@ -47,7 +47,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
config: MiriConfig,
) -> InterpResult<'tcx, (InterpCx<'mir, 'tcx, Evaluator<'tcx>>, MPlaceTy<'tcx, Tag>)> {
let mut ecx = InterpCx::new(
tcx.at(syntax::source_map::DUMMY_SP),
tcx.at(rustc_span::source_map::DUMMY_SP),
ty::ParamEnv::reveal_all(),
Evaluator::new(config.communicate),
MemoryExtra::new(
+1 -1
View File
@@ -8,7 +8,7 @@
layout::{self, LayoutOf, Size, TyLayout},
List, TyCtxt,
};
use syntax::source_map::DUMMY_SP;
use rustc_span::source_map::DUMMY_SP;
use rand::RngCore;
+1
View File
@@ -10,6 +10,7 @@
extern crate syntax;
#[macro_use]
extern crate rustc;
extern crate rustc_span;
extern crate rustc_data_structures;
extern crate rustc_mir;
extern crate rustc_target;
+2 -1
View File
@@ -14,7 +14,8 @@
layout::{LayoutOf, Size},
Ty, TyCtxt,
};
use syntax::{attr, source_map::Span, symbol::sym};
use rustc_span::{source_map::Span, symbol::sym};
use syntax::attr;
use crate::*;
+2 -2
View File
@@ -5,8 +5,8 @@
use rustc::ty;
use rustc::ty::layout::{Align, LayoutOf, Size};
use rustc_apfloat::Float;
use rustc_span::symbol::sym;
use syntax::attr;
use syntax::symbol::sym;
use crate::*;
@@ -961,7 +961,7 @@ fn emulate_foreign_item(
// lpBuffer : ptr to buffer that receives contents of the env_var as a null-terminated string.
// Return `# of chars` stored in the buffer pointed to by lpBuffer, excluding null-terminator.
// Return 0 upon failure.
// This is not the env var you are looking for.
this.set_last_error(Scalar::from_u32(203))?; // ERROR_ENVVAR_NOT_FOUND
this.write_null(dest)?;
+1 -1
View File
@@ -5,7 +5,7 @@
use rustc::ty;
use rustc::ty::layout::{self, Align, LayoutOf, Size};
use rustc_apfloat::Float;
use syntax::source_map::Span;
use rustc_span::source_map::Span;
use crate::*;
+1 -1
View File
@@ -14,7 +14,7 @@
use rustc::mir;
use rustc::ty::{self, layout::LayoutOf};
use rustc_target::spec::PanicStrategy;
use syntax::source_map::Span;
use rustc_span::source_map::Span;
use crate::*;