From 8a580baa278a1826d898f5f8c76ea4c40c35b2c3 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Tue, 11 Sep 2018 23:33:22 +0200 Subject: [PATCH] Recover proper regression test for issue #16278. --- src/test/run-pass/.gitattributes | 1 - src/test/ui/run-pass/issues/.gitattributes | 1 + src/test/ui/run-pass/issues/issue-16278.rs | 5 +++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/test/ui/run-pass/issues/.gitattributes diff --git a/src/test/run-pass/.gitattributes b/src/test/run-pass/.gitattributes index 46db548a8c497..c6a6f23074de0 100644 --- a/src/test/run-pass/.gitattributes +++ b/src/test/run-pass/.gitattributes @@ -1,2 +1 @@ lexer-crlf-line-endings-string-literal-doc-comment.rs -text -issue-16278.rs -text diff --git a/src/test/ui/run-pass/issues/.gitattributes b/src/test/ui/run-pass/issues/.gitattributes new file mode 100644 index 0000000000000..4517a4a2f1eec --- /dev/null +++ b/src/test/ui/run-pass/issues/.gitattributes @@ -0,0 +1 @@ +issue-16278.rs -text diff --git a/src/test/ui/run-pass/issues/issue-16278.rs b/src/test/ui/run-pass/issues/issue-16278.rs index 831e83c8c4b00..c3b6c5a38bad7 100644 --- a/src/test/ui/run-pass/issues/issue-16278.rs +++ b/src/test/ui/run-pass/issues/issue-16278.rs @@ -13,8 +13,9 @@ // this file has some special \r\n endings (use xxd to see them) -fn main() {assert_eq!(b"", b"\ +fn main() {assert_eq!(b"", b"\ "); -assert_eq!(b"\n", b" +assert_eq!(b"\n", b" "); } +