@@ -89,23 +89,23 @@ impl<'a, 'gcx> CheckTypeWellFormedVisitor<'a, 'gcx> {
8989 tcx. item_path_str( tcx. hir. local_def_id( item. id) ) ) ;
9090
9191 match item. node {
92- /// Right now we check that every default trait implementation
93- /// has an implementation of itself. Basically, a case like:
94- ///
95- /// `impl Trait for T {}`
96- ///
97- /// has a requirement of `T: Trait` which was required for default
98- /// method implementations. Although this could be improved now that
99- /// there's a better infrastructure in place for this, it's being left
100- /// for a follow-up work.
101- ///
102- /// Since there's such a requirement, we need to check *just* positive
103- /// implementations, otherwise things like:
104- ///
105- /// impl !Send for T {}
106- ///
107- /// won't be allowed unless there's an *explicit* implementation of `Send`
108- /// for `T`
92+ // Right now we check that every default trait implementation
93+ // has an implementation of itself. Basically, a case like:
94+ //
95+ // `impl Trait for T {}`
96+ //
97+ // has a requirement of `T: Trait` which was required for default
98+ // method implementations. Although this could be improved now that
99+ // there's a better infrastructure in place for this, it's being left
100+ // for a follow-up work.
101+ //
102+ // Since there's such a requirement, we need to check *just* positive
103+ // implementations, otherwise things like:
104+ //
105+ // impl !Send for T {}
106+ //
107+ // won't be allowed unless there's an *explicit* implementation of `Send`
108+ // for `T`
109109 hir:: ItemImpl ( _, hir:: ImplPolarity :: Positive , _, _,
110110 ref trait_ref, ref self_ty, _) => {
111111 self . check_impl ( item, self_ty, trait_ref) ;
0 commit comments