]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/comment4.rs
Honor `#[rustfmt::skip::attributes(derive)]` attribute
[rust.git] / tests / target / comment4.rs
index 910bade6c88f46620e149f8d286d5b418e35deec..e2ef7de978f93d6bea0624450be23caffdd4acc5 100644 (file)
@@ -1,4 +1,4 @@
-// rustfmt-normalize_comments: false
+#![allow(dead_code)] // bar
 
 //! Doc comment
 fn test() {
@@ -17,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,
@@ -44,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] = [];