Merge pull request #72 from bluss/rustup
rustup to rustc 1.14.0-nightly (3f4408347 2016-10-27)
This commit is contained in:
commit
c50c6e52da
@ -895,7 +895,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
||||
}
|
||||
|
||||
Static(def_id) => {
|
||||
let substs = subst::Substs::empty(self.tcx);
|
||||
let substs = self.tcx.intern_substs(&[]);
|
||||
let cid = GlobalId {
|
||||
def_id: def_id,
|
||||
substs: substs,
|
||||
@ -1655,7 +1655,7 @@ pub fn eval_main<'a, 'tcx: 'a>(
|
||||
def_id,
|
||||
mir.span,
|
||||
CachedMir::Ref(mir),
|
||||
subst::Substs::empty(tcx),
|
||||
tcx.intern_substs(&[]),
|
||||
Lvalue::from_ptr(Pointer::zst_ptr()),
|
||||
StackPopCleanup::None
|
||||
).expect("could not allocate first stack frame");
|
||||
|
@ -197,7 +197,7 @@ impl<'a, 'b, 'tcx> Visitor<'tcx> for ConstantExtractor<'a, 'b, 'tcx> {
|
||||
) {
|
||||
self.super_lvalue(lvalue, context, location);
|
||||
if let mir::Lvalue::Static(def_id) = *lvalue {
|
||||
let substs = subst::Substs::empty(self.ecx.tcx);
|
||||
let substs = self.ecx.tcx.intern_substs(&[]);
|
||||
let span = self.span;
|
||||
if let Some(node_item) = self.ecx.tcx.map.get_if_local(def_id) {
|
||||
if let hir::map::Node::NodeItem(&hir::Item { ref node, .. }) = node_item {
|
||||
|
Loading…
x
Reference in New Issue
Block a user