]> git.lizzy.rs Git - rust.git/commitdiff
Restore line endings in a test
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 7 Oct 2015 01:59:49 +0000 (21:59 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Wed, 7 Oct 2015 01:59:49 +0000 (21:59 -0400)
In #28864, @aarzee submitted some whitespace fixes. I r+'d it. But
@retp998 noticed[1] that this file is explicitly a test of this kind of
whitespace, and so I shouldn't have changed it. This restores the old
line endings.

1: https://github.com/rust-lang/rust/pull/28864#discussion_r41332279

src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs

index 10bf096dae7f749665e252488079f62c2d2b39cb..5c8db524cc2edeec729b4efb9949333bace83422 100644 (file)
@@ -1,7 +1,7 @@
 // ignore-tidy-cr ignore-license\r
 // ignore-tidy-cr (repeated again because of tidy bug)\r
 // license is ignored because tidy can't handle the CRLF here properly.\r
-
+\r
 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT\r
 // file at the top-level directory of this distribution and at\r
 // http://rust-lang.org/COPYRIGHT.\r
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your\r
 // option. This file may not be copied, modified, or distributed\r
 // except according to those terms.\r
-
+\r
 // NB: this file needs CRLF line endings. The .gitattributes file in\r
 // this directory should enforce it.\r
-
+\r
 // ignore-pretty\r
-
+\r
 /// Doc comment that ends in CRLF\r
 pub fn foo() {}\r
-
+\r
 /** Block doc comment that\r
  *  contains CRLF characters\r
  */\r
 pub fn bar() {}\r
-
+\r
 fn main() {\r
     let s = "string\r
 literal";\r
     assert_eq!(s, "string\nliteral");\r
-
+\r
     let s = "literal with \\r
              escaped newline";\r
     assert_eq!(s, "literal with escaped newline");\r
-
+\r
     let s = r"string\r
 literal";\r
     assert_eq!(s, "string\nliteral");\r
-
+\r
     // validate that our source file has CRLF endings\r
     let source = include_str!("lexer-crlf-line-endings-string-literal-doc-comment.rs");\r
     assert!(source.contains("string\r\nliteral"));\r