diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-02-02 08:30:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-02 08:30:18 +0900 |
| commit | 1529126411685a417c907144b886c679737b5f95 (patch) | |
| tree | 65fc2133de9e7983f1ff696ede3ea0d275eaa60f | |
| parent | 44dc4c2617479b654ae0a43f9fe0e0beef1732e6 (diff) | |
| parent | cad0cfd9fdbc64dece3f38c03b15ed9aad032d5c (diff) | |
| download | rust-1529126411685a417c907144b886c679737b5f95.tar.gz rust-1529126411685a417c907144b886c679737b5f95.zip | |
Rollup merge of #68727 - xfix:remove-comment-about-pretty-printer-in-format-tests, r=jonas-schievink
Remove a comment about pretty printer in formatting tests rustc is now using rustfmt, not the old formatter.
| -rw-r--r-- | src/test/ui/ifmt.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/ui/ifmt.rs b/src/test/ui/ifmt.rs index 1a070843cc4..27ab3d6b7ab 100644 --- a/src/test/ui/ifmt.rs +++ b/src/test/ui/ifmt.rs @@ -99,7 +99,6 @@ pub fn main() { let a: &dyn fmt::Debug = &1; t!(format!("{:?}", a), "1"); - // Formatting strings and their arguments t!(format!("{}", "a"), "a"); t!(format!("{:4}", "a"), "a "); @@ -187,10 +186,6 @@ pub fn main() { // Ergonomic format_args! t!(format!("{0:x} {0:X}", 15), "f F"); t!(format!("{0:x} {0:X} {}", 15), "f F 15"); - // NOTE: For now the longer test cases must not be followed immediately by - // >1 empty lines, or the pretty printer will break. Since no one wants to - // touch the current pretty printer (#751), we have no choice but to work - // around it. Some of the following test cases are also affected. t!(format!("{:x}{0:X}{a:x}{:X}{1:x}{a:X}", 13, 14, a=15), "dDfEeF"); t!(format!("{a:x} {a:X}", a=15), "f F"); @@ -201,7 +196,6 @@ pub fn main() { t!(format!("{a:.*} {0} {:.*}", 4, 3, "efgh", a="abcdef"), "abcd 4 efg"); t!(format!("{:.a$} {a} {a:#x}", "aaaaaa", a=2), "aa 2 0x2"); - // Test that pointers don't get truncated. { let val = usize::MAX; |
