]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/comment4.rs
Honor `#[rustfmt::skip::attributes(derive)]` attribute
[rust.git] / tests / target / comment4.rs
index 516b78c4ec4214892715fc16283cd0826060f4a6..e2ef7de978f93d6bea0624450be23caffdd4acc5 100644 (file)
@@ -1,13 +1,12 @@
-#![allow(dead_code)]
-// bar
+#![allow(dead_code)] // bar
+
 //! Doc comment
 fn test() {
     // comment
     // comment2
 
-    // FIXME(1275)
     code(); /* leave this comment alone!
-     * ok? */
+             * ok? */
 
     /* Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a
      * diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam
@@ -28,7 +27,7 @@ fn test() {
     //                           .unwrap());
 
     funk(); //dontchangeme
-    // or me
+            // or me
 }
 
 /// test123
@@ -48,5 +47,5 @@ fn debug_function() {
 
 #[link_section=".vectors"]
 #[no_mangle] // Test this attribute is preserved.
-#[cfg_attr(rustfmt, rustfmt_skip)]
+#[cfg_attr(rustfmt, rustfmt::skip)]
 pub static ISSUE_1284: [i32; 16] = [];