]> git.lizzy.rs Git - rust.git/commitdiff
Change doc comment to code comment
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 2 Jul 2017 22:27:36 +0000 (00:27 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 27 Jul 2017 18:38:32 +0000 (20:38 +0200)
src/librustc/middle/region.rs
src/librustc_typeck/check/wfcheck.rs

index 6455d7ecf85ae83d640bae0525ec2660ee76a0db..39cb5d1b8c8e84cccd392d72d7c451ae80958f5f 100644 (file)
@@ -458,10 +458,10 @@ pub fn nearest_common_ancestor(&self,
                                    -> CodeExtent {
         if scope_a == scope_b { return scope_a; }
 
-        /// [1] The initial values for `a_buf` and `b_buf` are not used.
-        /// The `ancestors_of` function will return some prefix that
-        /// is re-initialized with new values (or else fallback to a
-        /// heap-allocated vector).
+        // [1] The initial values for `a_buf` and `b_buf` are not used.
+        // The `ancestors_of` function will return some prefix that
+        // is re-initialized with new values (or else fallback to a
+        // heap-allocated vector).
         let mut a_buf: [CodeExtent; 32] = [scope_a /* [1] */; 32];
         let mut a_vec: Vec<CodeExtent> = vec![];
         let mut b_buf: [CodeExtent; 32] = [scope_b /* [1] */; 32];
index 69cd141462875af1d959e30a64fb83b563b58178..cf5882bb9bdbd943cfc11fb9aa83e6b8abb572e3 100644 (file)
@@ -89,23 +89,23 @@ fn check_item_well_formed(&mut self, item: &hir::Item) {
                tcx.item_path_str(tcx.hir.local_def_id(item.id)));
 
         match item.node {
-            /// Right now we check that every default trait implementation
-            /// has an implementation of itself. Basically, a case like:
-            ///
-            /// `impl Trait for T {}`
-            ///
-            /// has a requirement of `T: Trait` which was required for default
-            /// method implementations. Although this could be improved now that
-            /// there's a better infrastructure in place for this, it's being left
-            /// for a follow-up work.
-            ///
-            /// Since there's such a requirement, we need to check *just* positive
-            /// implementations, otherwise things like:
-            ///
-            /// impl !Send for T {}
-            ///
-            /// won't be allowed unless there's an *explicit* implementation of `Send`
-            /// for `T`
+            // Right now we check that every default trait implementation
+            // has an implementation of itself. Basically, a case like:
+            //
+            // `impl Trait for T {}`
+            //
+            // has a requirement of `T: Trait` which was required for default
+            // method implementations. Although this could be improved now that
+            // there's a better infrastructure in place for this, it's being left
+            // for a follow-up work.
+            //
+            // Since there's such a requirement, we need to check *just* positive
+            // implementations, otherwise things like:
+            //
+            // impl !Send for T {}
+            //
+            // won't be allowed unless there's an *explicit* implementation of `Send`
+            // for `T`
             hir::ItemImpl(_, hir::ImplPolarity::Positive, _, _,
                           ref trait_ref, ref self_ty, _) => {
                 self.check_impl(item, self_ty, trait_ref);