From 2eca09e438c0d1471c9c602d63075d0405df8b10 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sat, 4 Aug 2018 19:27:34 +0900 Subject: [PATCH 1/2] Fix parsing '#'-hiding of rustdoc --- src/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comment.rs b/src/comment.rs index ed83a3925b0..5958349c6ad 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -500,7 +500,7 @@ fn rewrite_comment_inner( const RUSTFMT_CUSTOM_COMMENT_PREFIX: &str = "//#### "; fn hide_sharp_behind_comment<'a>(s: &'a str) -> Cow<'a, str> { - if s.trim_left().starts_with('#') { + if s.trim_left().starts_with("# ") { Cow::from(format!("{}{}", RUSTFMT_CUSTOM_COMMENT_PREFIX, s)) } else { Cow::from(s) From ac9d8040dbf2cc97c11fa2a8402e335f3290ba36 Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Sun, 5 Aug 2018 08:45:02 +0900 Subject: [PATCH 2/2] Remove stdsimd from allow_failures --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 98e87b526f7..331f9351a3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,8 +45,6 @@ matrix: - env: INTEGRATION=rust-clippy # Build failure - env: INTEGRATION=rust-semverver - # See: https://github.com/rust-lang-nursery/rustfmt/issues/2787 - - env: INTEGRATION=stdsimd before_script: - |