]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/comment4.rs
Honor `#[rustfmt::skip::attributes(derive)]` attribute
[rust.git] / tests / target / comment4.rs
index fd91b5462f5a0a73553ae217ea823ec5025d3037..e2ef7de978f93d6bea0624450be23caffdd4acc5 100644 (file)
@@ -1,11 +1,12 @@
+#![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
@@ -16,7 +17,7 @@ fn test() {
      * amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis
      * felis, pulvinar a semper sed, adipiscing id dolor. */
 
-    // Very looooooooooooooooooooooooooooooooooooooooooooooooooooooooong comment that should be split
+    // Very loooooooooooooooooooooooooooooooooooooooooooooooooooooooong comment that should be split
 
     // println!("{:?}", rewrite_comment(subslice,
     //                                       false,
@@ -26,7 +27,7 @@ fn test() {
     //                           .unwrap());
 
     funk(); //dontchangeme
-    // or me
+            // or me
 }
 
 /// test123
@@ -43,3 +44,8 @@ fn debug_function() {
     println!("hello");
 }
 // */
+
+#[link_section=".vectors"]
+#[no_mangle] // Test this attribute is preserved.
+#[cfg_attr(rustfmt, rustfmt::skip)]
+pub static ISSUE_1284: [i32; 16] = [];