From fa1d125ae6b8dd4a472510ef3478daaff831ae2c Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Sat, 31 Mar 2018 00:50:53 -0400 Subject: [PATCH 1/4] Add test for rustdoc ignore test This will check for regression on issue #32556 --- src/test/rustdoc/issue-32556.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/rustdoc/issue-32556.rs diff --git a/src/test/rustdoc/issue-32556.rs b/src/test/rustdoc/issue-32556.rs new file mode 100644 index 0000000000000..a9f191989fe35 --- /dev/null +++ b/src/test/rustdoc/issue-32556.rs @@ -0,0 +1,17 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +/// Blah blah blah +/// ``` ignore +/// bad_assert!(); +/// ``` +pub fn foo() {} + + From 48e3c961eb9d659217416490b02a7417f338c3fa Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Sat, 31 Mar 2018 01:26:02 -0400 Subject: [PATCH 2/4] Fix tidy trailing newlines --- src/test/rustdoc/issue-32556.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/rustdoc/issue-32556.rs b/src/test/rustdoc/issue-32556.rs index a9f191989fe35..f08a548efe27d 100644 --- a/src/test/rustdoc/issue-32556.rs +++ b/src/test/rustdoc/issue-32556.rs @@ -13,5 +13,3 @@ /// bad_assert!(); /// ``` pub fn foo() {} - - From 42bc0712f127906bca9063a6659c18aea2ddd9da Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Sat, 31 Mar 2018 16:08:58 -0400 Subject: [PATCH 3/4] Remove whitespace --- src/test/rustdoc/issue-32556.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/rustdoc/issue-32556.rs b/src/test/rustdoc/issue-32556.rs index f08a548efe27d..c08c2d6e162ac 100644 --- a/src/test/rustdoc/issue-32556.rs +++ b/src/test/rustdoc/issue-32556.rs @@ -1,4 +1,4 @@ -// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -9,7 +9,7 @@ // except according to those terms. /// Blah blah blah -/// ``` ignore +/// ```ignore /// bad_assert!(); /// ``` pub fn foo() {} From cb3097567f92adc32f15c1cc4619220e3c98505b Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Sat, 31 Mar 2018 16:23:50 -0400 Subject: [PATCH 4/4] Add ignore reason --- src/test/rustdoc/issue-32556.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/rustdoc/issue-32556.rs b/src/test/rustdoc/issue-32556.rs index c08c2d6e162ac..3ab138079a1f0 100644 --- a/src/test/rustdoc/issue-32556.rs +++ b/src/test/rustdoc/issue-32556.rs @@ -9,7 +9,7 @@ // except according to those terms. /// Blah blah blah -/// ```ignore +/// ```ignore (testing rustdoc's handling of ignore) /// bad_assert!(); /// ``` pub fn foo() {}