File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
branches/try/src/librustc/middle/traits Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
- refs/heads/try: d38aab397e3295ead5869f84cd54044c1759c6d7
5
+ refs/heads/try: f0e9bd9099e729eb73b4483795d0057e963c8eac
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ pub enum Vtable<'tcx, N> {
222
222
VtableImpl ( VtableImplData < ' tcx , N > ) ,
223
223
224
224
/// 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.
225
228
VtableDefaultImpl ( VtableDefaultImplData < N > ) ,
226
229
227
230
/// Successful resolution to an obligation provided by the caller
Original file line number Diff line number Diff line change @@ -323,8 +323,8 @@ pub fn trait_ref_for_builtin_bound<'tcx>(
323
323
}
324
324
}
325
325
326
+
326
327
pub fn predicate_for_trait_ref < ' tcx > (
327
- tcx : & ty:: ctxt < ' tcx > ,
328
328
cause : ObligationCause < ' tcx > ,
329
329
trait_ref : Rc < ty:: TraitRef < ' tcx > > ,
330
330
recursion_depth : uint )
@@ -349,7 +349,7 @@ pub fn predicate_for_default_trait_impl<'tcx>(
349
349
def_id : trait_def_id,
350
350
substs : tcx. mk_substs ( Substs :: empty ( ) . with_self_ty ( param_ty) )
351
351
} ) ;
352
- predicate_for_trait_ref ( tcx , cause, trait_ref, recursion_depth)
352
+ predicate_for_trait_ref ( cause, trait_ref, recursion_depth)
353
353
}
354
354
355
355
pub fn predicate_for_builtin_bound < ' tcx > (
@@ -361,7 +361,7 @@ pub fn predicate_for_builtin_bound<'tcx>(
361
361
-> Result < PredicateObligation < ' tcx > , ErrorReported >
362
362
{
363
363
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)
365
365
}
366
366
367
367
/// Cast a trait reference into a reference to one of its super
You can’t perform that action at this time.
0 commit comments