Skip to content

Commit 267f4a1

Browse files
authored
Merge pull request rust-lang#102 from oli-obk/rustup
rustup to 2017-01-12
2 parents d889ded + 1838ef6 commit 267f4a1

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/eval_context.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
200200
Struct(_) => unimplemented!(),
201201
Tuple(_) => unimplemented!(),
202202
Function(_) => unimplemented!(),
203-
Array(_, _) => unimplemented!(),
203+
Array(_) => unimplemented!(),
204204
Repeat(_, _) => unimplemented!(),
205-
Dummy => unimplemented!(),
206205
};
207206

208207
Ok(Value::ByVal(primval))
@@ -261,7 +260,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
261260
// TODO(solson): Is this inefficient? Needs investigation.
262261
let ty = self.monomorphize(ty, substs);
263262

264-
self.tcx.infer_ctxt(None, None, Reveal::All).enter(|infcx| {
263+
self.tcx.infer_ctxt((), Reveal::All).enter(|infcx| {
265264
ty.layout(&infcx).map_err(EvalError::Layout)
266265
})
267266
}

src/terminator/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
462462
pub(super) fn fulfill_obligation(&self, trait_ref: ty::PolyTraitRef<'tcx>) -> traits::Vtable<'tcx, ()> {
463463
// Do the initial selection for the obligation. This yields the shallow result we are
464464
// looking for -- that is, what specific impl.
465-
self.tcx.infer_ctxt(None, None, Reveal::All).enter(|infcx| {
465+
self.tcx.infer_ctxt((), Reveal::All).enter(|infcx| {
466466
let mut selcx = traits::SelectionContext::new(&infcx);
467467

468468
let obligation = traits::Obligation::new(
@@ -833,7 +833,7 @@ pub(super) fn get_impl_method<'a, 'tcx>(
833833

834834
match trait_def.ancestors(impl_def_id).defs(tcx, name, ty::AssociatedKind::Method).next() {
835835
Some(node_item) => {
836-
let substs = tcx.infer_ctxt(None, None, Reveal::All).enter(|infcx| {
836+
let substs = tcx.infer_ctxt((), Reveal::All).enter(|infcx| {
837837
let substs = substs.rebase_onto(tcx, trait_def_id, impl_substs);
838838
let substs = traits::translate_substs(&infcx, impl_def_id,
839839
substs, node_item.node);
@@ -870,7 +870,7 @@ pub fn find_method<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
870870

871871
match trait_def.ancestors(impl_def_id).defs(tcx, name, ty::AssociatedKind::Method).next() {
872872
Some(node_item) => {
873-
let substs = tcx.infer_ctxt(None, None, Reveal::All).enter(|infcx| {
873+
let substs = tcx.infer_ctxt((), Reveal::All).enter(|infcx| {
874874
let substs = substs.rebase_onto(tcx, trait_def_id, impl_substs);
875875
let substs = traits::translate_substs(&infcx, impl_def_id, substs, node_item.node);
876876
tcx.lift(&substs).unwrap_or_else(|| {

src/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
183183
debug!("normalize_and_test_predicates(predicates={:?})",
184184
predicates);
185185

186-
self.tcx.infer_ctxt(None, None, Reveal::All).enter(|infcx| {
186+
self.tcx.infer_ctxt((), Reveal::All).enter(|infcx| {
187187
let mut selcx = SelectionContext::new(&infcx);
188188
let mut fulfill_cx = traits::FulfillmentContext::new();
189189
let cause = traits::ObligationCause::dummy();

0 commit comments

Comments
 (0)