Skip to content

Commit b87c6d5

Browse files
committed
---
yaml --- r: 185749 b: refs/heads/auto c: f0e9bd9 h: refs/heads/master i: 185747: 639c8b6 v: v3
1 parent b803b74 commit b87c6d5

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: d38aab397e3295ead5869f84cd54044c1759c6d7
13+
refs/heads/auto: f0e9bd9099e729eb73b4483795d0057e963c8eac
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/traits/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ pub enum Vtable<'tcx, N> {
222222
VtableImpl(VtableImplData<'tcx, N>),
223223

224224
/// Vtable for default trait implementations
225+
/// This carries the information and nested obligations with regards
226+
/// to a default implementation for a trait `Trait`. The nested obligations
227+
/// ensure the trait implementation holds for all the constituent types.
225228
VtableDefaultImpl(VtableDefaultImplData<N>),
226229

227230
/// Successful resolution to an obligation provided by the caller

branches/auto/src/librustc/middle/traits/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ pub fn trait_ref_for_builtin_bound<'tcx>(
323323
}
324324
}
325325

326+
326327
pub fn predicate_for_trait_ref<'tcx>(
327-
tcx: &ty::ctxt<'tcx>,
328328
cause: ObligationCause<'tcx>,
329329
trait_ref: Rc<ty::TraitRef<'tcx>>,
330330
recursion_depth: uint)
@@ -349,7 +349,7 @@ pub fn predicate_for_default_trait_impl<'tcx>(
349349
def_id: trait_def_id,
350350
substs: tcx.mk_substs(Substs::empty().with_self_ty(param_ty))
351351
});
352-
predicate_for_trait_ref(tcx, cause, trait_ref, recursion_depth)
352+
predicate_for_trait_ref(cause, trait_ref, recursion_depth)
353353
}
354354

355355
pub fn predicate_for_builtin_bound<'tcx>(
@@ -361,7 +361,7 @@ pub fn predicate_for_builtin_bound<'tcx>(
361361
-> Result<PredicateObligation<'tcx>, ErrorReported>
362362
{
363363
let trait_ref = try!(trait_ref_for_builtin_bound(tcx, builtin_bound, param_ty));
364-
predicate_for_trait_ref(tcx, cause, trait_ref, recursion_depth)
364+
predicate_for_trait_ref(cause, trait_ref, recursion_depth)
365365
}
366366

367367
/// Cast a trait reference into a reference to one of its super

0 commit comments

Comments
 (0)