X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Ftarget%2Fcomment4.rs;h=e2ef7de978f93d6bea0624450be23caffdd4acc5;hb=8984438a6faf11e0cb8e876e80f177a42a43904d;hp=c4d25ca11435fe845cfd8ada45328699dbe0818c;hpb=0678152e73e1ff6ed15be371eede85e027ff60bc;p=rust.git diff --git a/tests/target/comment4.rs b/tests/target/comment4.rs index c4d25ca1143..e2ef7de978f 100644 --- a/tests/target/comment4.rs +++ b/tests/target/comment4.rs @@ -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, @@ -32,3 +32,20 @@ fn test() { /// test123 fn doc_comment() {} + +/* +Regression test for issue #956 + +(some very important text) +*/ + +/* +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] = [];