diff options
| author | Carlos Liam <carlos@aarzee.me> | 2015-10-06 11:14:11 -0400 |
|---|---|---|
| committer | Carlos Liam <carlos@aarzee.me> | 2015-10-06 11:14:11 -0400 |
| commit | 3967e1c9409873ce0f3324fb78ea2d82aa83f271 (patch) | |
| tree | 75e8530ff32e0205e6a060e7c577f065954ba9f6 /src/test | |
| parent | 2f60768e840fd186ccd7812e95dd6e46a54bc432 (diff) | |
Clean newlines
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/issue-11577.rs | 1 | ||||
| -rw-r--r-- | src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/test/run-pass/issue-11577.rs b/src/test/run-pass/issue-11577.rs index 81588e8ef78..c1997fac74b 100644 --- a/src/test/run-pass/issue-11577.rs +++ b/src/test/run-pass/issue-11577.rs @@ -1,4 +1,3 @@ - // Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. diff --git a/src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs b/src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs index 5c8db524cc2..10bf096dae7 100644 --- a/src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs +++ b/src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs @@ -1,7 +1,7 @@ // ignore-tidy-cr ignore-license // ignore-tidy-cr (repeated again because of tidy bug) // license is ignored because tidy can't handle the CRLF here properly. - + // Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. @@ -11,33 +11,33 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. - + // NB: this file needs CRLF line endings. The .gitattributes file in // this directory should enforce it. - + // ignore-pretty - + /// Doc comment that ends in CRLF pub fn foo() {} - + /** Block doc comment that * contains CRLF characters */ pub fn bar() {} - + fn main() { let s = "string literal"; assert_eq!(s, "string\nliteral"); - + let s = "literal with \ escaped newline"; assert_eq!(s, "literal with escaped newline"); - + let s = r"string literal"; assert_eq!(s, "string\nliteral"); - + // validate that our source file has CRLF endings let source = include_str!("lexer-crlf-line-endings-string-literal-doc-comment.rs"); assert!(source.contains("string\r\nliteral")); |
