]> git.lizzy.rs Git - rust.git/commitdiff
Fix some pretty printing tests
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Wed, 12 Oct 2016 17:54:41 +0000 (20:54 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Tue, 18 Oct 2016 20:23:40 +0000 (23:23 +0300)
111 files changed:
src/libsyntax/parse/lexer/comments.rs
src/libsyntax/print/pprust.rs
src/test/compile-fail/borrowck/borrowck-use-uninitialized-in-cast.rs
src/test/compile-fail/coherence-cow.rs
src/test/compile-fail/coherence-vec-local-2.rs
src/test/compile-fail/coherence-vec-local.rs
src/test/compile-fail/issue-13352.rs
src/test/compile-fail/issue-19482.rs
src/test/compile-fail/meta-expected-error-correct-rev.rs
src/test/compile-fail/meta-expected-error-wrong-rev.rs
src/test/compile-fail/object-lifetime-default-from-rptr-box-error.rs
src/test/compile-fail/object-lifetime-default-from-rptr-struct-error.rs
src/test/compile-fail/variance-trait-matching.rs
src/test/pretty/for-comment.rs
src/test/run-fail/divide-by-zero.rs
src/test/run-fail/glob-use-std.rs
src/test/run-fail/mod-zero.rs
src/test/run-fail/overflowing-add.rs
src/test/run-fail/overflowing-lsh-1.rs
src/test/run-fail/overflowing-lsh-2.rs
src/test/run-fail/overflowing-lsh-3.rs
src/test/run-fail/overflowing-lsh-4.rs
src/test/run-fail/overflowing-mul.rs
src/test/run-fail/overflowing-neg.rs
src/test/run-fail/overflowing-rsh-1.rs
src/test/run-fail/overflowing-rsh-2.rs
src/test/run-fail/overflowing-rsh-3.rs
src/test/run-fail/overflowing-rsh-4.rs
src/test/run-fail/overflowing-rsh-5.rs
src/test/run-fail/overflowing-rsh-6.rs
src/test/run-fail/overflowing-sub.rs
src/test/run-fail/run-unexported-tests.rs
src/test/run-fail/test-panic.rs
src/test/run-fail/test-should-fail-bad-message.rs
src/test/run-fail/test-tasks-invalid-value.rs
src/test/run-pass-fulldeps/custom-derive-partial-eq.rs
src/test/run-pass-fulldeps/issue-16992.rs
src/test/run-pass-fulldeps/issue-18763-quote-token-tree.rs
src/test/run-pass-fulldeps/lint-group-plugin.rs
src/test/run-pass-fulldeps/lint-plugin-cmdline-load.rs
src/test/run-pass-fulldeps/lint-plugin.rs
src/test/run-pass-fulldeps/quote-tokens.rs
src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs
src/test/run-pass-valgrind/cast-enum-with-dtor.rs
src/test/run-pass/backtrace-debuginfo.rs
src/test/run-pass/backtrace.rs
src/test/run-pass/borrowck/borrowck-pat-enum.rs
src/test/run-pass/cfg-in-crate-1.rs
src/test/run-pass/command-exec.rs
src/test/run-pass/core-run-destroy.rs
src/test/run-pass/deprecated-macro_escape-inner.rs
src/test/run-pass/deprecated-macro_escape.rs
src/test/run-pass/deriving-cmp-generic-enum.rs
src/test/run-pass/deriving-meta-empty-trait-list.rs
src/test/run-pass/enum-size-variance.rs
src/test/run-pass/hygienic-labels-in-let.rs
src/test/run-pass/ifmt.rs
src/test/run-pass/imports.rs
src/test/run-pass/issue-11709.rs
src/test/run-pass/issue-15189.rs
src/test/run-pass/issue-16492.rs
src/test/run-pass/issue-16597-empty.rs
src/test/run-pass/issue-16597.rs
src/test/run-pass/issue-16668.rs
src/test/run-pass/issue-18464.rs
src/test/run-pass/issue-20427.rs
src/test/run-pass/issue-20823.rs
src/test/run-pass/issue-22992.rs
src/test/run-pass/issue-23338-ensure-param-drop-order.rs
src/test/run-pass/issue-26873-multifile.rs
src/test/run-pass/issue-27401-dropflag-reinit.rs
src/test/run-pass/issue-27639.rs
src/test/run-pass/issue-28839.rs
src/test/run-pass/issue-29740.rs
src/test/run-pass/issue-34932.rs
src/test/run-pass/issue-7911.rs
src/test/run-pass/issue-8460.rs
src/test/run-pass/issue-9129.rs
src/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs
src/test/run-pass/linear-for-loop.rs
src/test/run-pass/macro-2.rs
src/test/run-pass/macro-attribute-expansion.rs
src/test/run-pass/macro-attributes.rs
src/test/run-pass/macro-include-items.rs
src/test/run-pass/macro-meta-items.rs
src/test/run-pass/macro-multiple-items.rs
src/test/run-pass/macro-stmt.rs
src/test/run-pass/mir_raw_fat_ptr.rs
src/test/run-pass/mod_dir_implicit.rs
src/test/run-pass/mod_dir_path.rs
src/test/run-pass/mod_dir_path2.rs
src/test/run-pass/mod_dir_path3.rs
src/test/run-pass/mod_dir_path_multi.rs
src/test/run-pass/mod_dir_recursive.rs
src/test/run-pass/mod_dir_simple.rs
src/test/run-pass/mod_file.rs
src/test/run-pass/mod_file_with_path_attr.rs
src/test/run-pass/numeric-method-autoexport.rs
src/test/run-pass/reexport-test-harness-main.rs
src/test/run-pass/regions-bound-lists-feature-gate-2.rs
src/test/run-pass/regions-bound-lists-feature-gate.rs
src/test/run-pass/shebang.rs
src/test/run-pass/simd-intrinsic-generic-elements.rs
src/test/run-pass/super-fast-paren-parsing.rs
src/test/run-pass/syntax-extension-source-utils.rs
src/test/run-pass/task-comm-3.rs
src/test/run-pass/test-fn-signature-verification-for-explicit-return-type.rs
src/test/run-pass/test-runner-hides-main.rs
src/test/run-pass/test-should-fail-good-message.rs
src/test/run-pass/trait-bounds-in-arc.rs
src/test/run-pass/union/union-with-drop-fields-lint.rs

index 38f811d54dab83adcfb0cfc46296736083d601d1..ba83a55ea7937c1321baf60568cbf729b24b9b91 100644 (file)
@@ -24,7 +24,7 @@
 use std::io::Read;
 use std::usize;
 
-#[derive(Clone, Copy, PartialEq)]
+#[derive(Clone, Copy, PartialEq, Debug)]
 pub enum CommentStyle {
     /// No code on either side of each line of the comment
     Isolated,
@@ -155,14 +155,13 @@ fn push_blank_line_comment(rdr: &StringReader, comments: &mut Vec<Comment>) {
 
 fn consume_whitespace_counting_blank_lines(rdr: &mut StringReader, comments: &mut Vec<Comment>) {
     while is_pattern_whitespace(rdr.ch) && !rdr.is_eof() {
-        if rdr.col == CharPos(0) && rdr.ch_is('\n') {
+        if rdr.ch_is('\n') {
             push_blank_line_comment(rdr, &mut *comments);
         }
         rdr.bump();
     }
 }
 
-
 fn read_shebang_comment(rdr: &mut StringReader,
                         code_to_the_left: bool,
                         comments: &mut Vec<Comment>) {
@@ -317,14 +316,22 @@ fn read_block_comment(rdr: &mut StringReader,
 }
 
 
-fn consume_comment(rdr: &mut StringReader, code_to_the_left: bool, comments: &mut Vec<Comment>) {
+fn consume_comment(rdr: &mut StringReader,
+                   comments: &mut Vec<Comment>,
+                   code_to_the_left: &mut bool,
+                   anything_to_the_left: &mut bool) {
     debug!(">>> consume comment");
     if rdr.ch_is('/') && rdr.nextch_is('/') {
-        read_line_comments(rdr, code_to_the_left, comments);
+        read_line_comments(rdr, *code_to_the_left, comments);
+        *code_to_the_left = false;
+        *anything_to_the_left = false;
     } else if rdr.ch_is('/') && rdr.nextch_is('*') {
-        read_block_comment(rdr, code_to_the_left, comments);
+        read_block_comment(rdr, *code_to_the_left, comments);
+        *anything_to_the_left = true;
     } else if rdr.ch_is('#') && rdr.nextch_is('!') {
-        read_shebang_comment(rdr, code_to_the_left, comments);
+        read_shebang_comment(rdr, *code_to_the_left, comments);
+        *code_to_the_left = false;
+        *anything_to_the_left = false;
     } else {
         panic!();
     }
@@ -352,23 +359,29 @@ pub fn gather_comments_and_literals(span_diagnostic: &errors::Handler,
 
     let mut comments: Vec<Comment> = Vec::new();
     let mut literals: Vec<Literal> = Vec::new();
-    let mut first_read: bool = true;
+    let mut code_to_the_left = false; // Only code
+    let mut anything_to_the_left = false; // Code or comments
     while !rdr.is_eof() {
         loop {
-            let mut code_to_the_left = !first_read;
+            // Eat all the whitespace and count blank lines.
             rdr.consume_non_eol_whitespace();
             if rdr.ch_is('\n') {
-                code_to_the_left = false;
+                if anything_to_the_left {
+                    rdr.bump(); // The line is not blank, do not count.
+                }
                 consume_whitespace_counting_blank_lines(&mut rdr, &mut comments);
+                code_to_the_left = false;
+                anything_to_the_left = false;
             }
-            while rdr.peeking_at_comment() {
-                consume_comment(&mut rdr, code_to_the_left, &mut comments);
-                consume_whitespace_counting_blank_lines(&mut rdr, &mut comments);
+            // Eat one comment group
+            if rdr.peeking_at_comment() {
+                consume_comment(&mut rdr, &mut comments,
+                                &mut code_to_the_left, &mut anything_to_the_left);
+            } else {
+                break
             }
-            break;
         }
 
-
         let bstart = rdr.pos;
         rdr.next_token();
         // discard, and look ahead; we're working with internal state
@@ -384,7 +397,8 @@ pub fn gather_comments_and_literals(span_diagnostic: &errors::Handler,
         } else {
             debug!("tok: {}", pprust::token_to_string(&tok));
         }
-        first_read = false;
+        code_to_the_left = true;
+        anything_to_the_left = true;
     }
 
     (comments, literals)
index ecb437f31a5ad03d6462ed034d20a3a86a49fa28..c005933d50f053b844790ed56ff6343050099f86 100644 (file)
@@ -545,15 +545,12 @@ fn next_lit(&mut self, pos: BytePos) -> Option<comments::Literal> {
     }
 
     fn maybe_print_comment(&mut self, pos: BytePos) -> io::Result<()> {
-        loop {
-            match self.next_comment() {
-                Some(ref cmnt) => {
-                    if (*cmnt).pos < pos {
-                        try!(self.print_comment(cmnt));
-                        self.cur_cmnt_and_lit().cur_cmnt += 1;
-                    } else { break; }
-                }
-                _ => break
+        while let Some(ref cmnt) = self.next_comment() {
+            if cmnt.pos < pos {
+                try!(self.print_comment(cmnt));
+                self.cur_cmnt_and_lit().cur_cmnt += 1;
+            } else {
+                break
             }
         }
         Ok(())
@@ -581,7 +578,9 @@ fn print_comment(&mut self,
                 Ok(())
             }
             comments::Trailing => {
-                try!(word(self.writer(), " "));
+                if !self.is_bol() {
+                    try!(word(self.writer(), " "));
+                }
                 if cmnt.lines.len() == 1 {
                     try!(word(self.writer(), &cmnt.lines[0]));
                     hardbreak(self.writer())
@@ -1715,6 +1714,7 @@ pub fn print_block_maybe_unclosed(&mut self,
         for (i, st) in blk.stmts.iter().enumerate() {
             match st.node {
                 ast::StmtKind::Expr(ref expr) if i == blk.stmts.len() - 1 => {
+                    try!(self.maybe_print_comment(st.span.lo));
                     try!(self.space_if_not_bol());
                     try!(self.print_expr_outer_attr_style(&expr, false));
                     try!(self.maybe_print_trailing_comment(expr.span, Some(blk.span.hi)));
@@ -2604,6 +2604,7 @@ fn print_arm(&mut self, arm: &ast::Arm) -> io::Result<()> {
         }
         try!(self.cbox(INDENT_UNIT));
         try!(self.ibox(0));
+        try!(self.maybe_print_comment(arm.pats[0].span.lo));
         try!(self.print_outer_attributes(&arm.attrs));
         let mut first = true;
         for p in &arm.pats {
@@ -3007,15 +3008,11 @@ pub fn maybe_print_trailing_comment(&mut self, span: syntax_pos::Span,
             _ => return Ok(())
         };
         if let Some(ref cmnt) = self.next_comment() {
-            if (*cmnt).style != comments::Trailing { return Ok(()) }
+            if cmnt.style != comments::Trailing { return Ok(()) }
             let span_line = cm.lookup_char_pos(span.hi);
-            let comment_line = cm.lookup_char_pos((*cmnt).pos);
-            let mut next = (*cmnt).pos + BytePos(1);
-            if let Some(p) = next_pos {
-                next = p;
-            }
-            if span.hi < (*cmnt).pos && (*cmnt).pos < next &&
-               span_line.line == comment_line.line {
+            let comment_line = cm.lookup_char_pos(cmnt.pos);
+            let next = next_pos.unwrap_or(cmnt.pos + BytePos(1));
+            if span.hi < cmnt.pos && cmnt.pos < next && span_line.line == comment_line.line {
                 self.print_comment(cmnt)?;
                 self.cur_cmnt_and_lit.cur_cmnt += 1;
             }
index a3d5af80b533b6ac220635007281b56c954ad2ff..3f429bbd4b63473016bd91ff94b29bcce3fa119e 100644 (file)
@@ -12,8 +12,6 @@
 // The problem was specified to casting to `*`, as creating unsafe
 // pointers was not being fully checked. Issue #20791.
 
-// pretty-expanded FIXME #23616
-
 fn main() {
     let x: &i32;
     let y = x as *const i32; //~ ERROR use of possibly uninitialized variable: `*x`
index 6a2d1bac49381f825be56c04635a8d0367726a6f..86ae5b44d9db02bc9326827268d255d6fce7dbc2 100644 (file)
@@ -12,8 +12,6 @@
 
 // aux-build:coherence_lib.rs
 
-// pretty-expanded FIXME #23616
-
 // Test that the `Pair` type reports an error if it contains type
 // parameters, even when they are covered by local types. This test
 // was originally intended to test the opposite, but the rules changed
index 5f0b56af2c22637b279877731b7d404b24b906e9..196c2f4ee3cd345feb5d022c599b6e0305d289a3 100644 (file)
@@ -13,8 +13,6 @@
 
 // aux-build:coherence_lib.rs
 
-// pretty-expanded FIXME #23616
-
 extern crate coherence_lib as lib;
 use lib::Remote;
 
index c354caac2b5c261714f3f62c5d381b6d2c060d8c..49822dcfcb3f0e049d3308c6bea7e3e5063df540 100644 (file)
@@ -13,8 +13,6 @@
 
 // aux-build:coherence_lib.rs
 
-// pretty-expanded FIXME #23616
-
 extern crate coherence_lib as lib;
 use lib::Remote;
 
index 13e677d72bc1e35c0cef924ac7ba63c0dd789a61..0c446f5fe47031644cf5404e49a9f7a1609044ed 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// pretty-expanded FIXME #23616
-
 fn foo(_: Box<FnMut()>) {}
 
 fn main() {
index 21a50f24d5e5c8295eeeb9a86b03133441ca1484..b54f008f8ce3abfa986a0e47cfa4e4f7114c3f60 100644 (file)
@@ -11,8 +11,6 @@
 // Test that a partially specified trait object with unspecified associated
 // type does not type-check.
 
-// pretty-expanded FIXME #23616
-
 trait Foo {
     type A;
 
index 95b4e1a33cccd0c25705218e15bbdb6dbd6b5088..bd70879d13e5fe0cae7328197603f1d094c068ac 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // revisions: a
-// pretty-expanded FIXME #23616
 
 // Counterpart to `meta-expected-error-wrong-rev.rs`
 
index 084c6ed4f4b4113bd006ff6572ae181758fda620..3c13050812c9326369dfbbc01063c2ec3b8a375f 100644 (file)
@@ -10,7 +10,6 @@
 
 // revisions: a
 // should-fail
-// pretty-expanded FIXME #23616
 
 // This is a "meta-test" of the compilertest framework itself.  In
 // particular, it includes the right error message, but the message
index e351c84c8afc68bff9695fdc105f2c1952f06cbc..98301ef1a0a1dea0701e0b6cf051b9d625189f82 100644 (file)
@@ -11,8 +11,6 @@
 // Test that the lifetime from the enclosing `&` is "inherited"
 // through the `Box` struct.
 
-// pretty-expanded FIXME #23616
-
 #![allow(dead_code)]
 
 trait Test {
index 93268559e8e51c4e132c650c7bc976b87f3946c2..836e4fa114263541e435bff1e182c54bea274755 100644 (file)
@@ -11,8 +11,6 @@
 // Test that the lifetime from the enclosing `&` is "inherited"
 // through the `MyBox` struct.
 
-// pretty-expanded FIXME #23616
-
 #![allow(dead_code)]
 #![feature(rustc_error)]
 
index 49dc1e68c221f8302d9f1d20973c525d35b603c0..2d78940ce4b9d195d18ed24112b54acae7a0b6a2 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// pretty-expanded FIXME #23616
-
 #![allow(dead_code)]
 
 // Get<T> is covariant in T
index af76c1d9406643ddbf26d58276bd996502e0aee9..32837fbcf87bc39cede7ce28c31c8dd26e298beb 100644 (file)
@@ -17,6 +17,5 @@ fn f(v: &[isize]) -> isize {
     for e in v {
         n = *e; // This comment once triggered pretty printer bug
     }
-
     n
 }
index c9c4a88c9b53eca1692726f0990cb833a5c7cf0f..1f9e069526ce9b28d07452f26782ab84098561d0 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:attempt to divide by zero
 
 fn main() {
index 6712b3b0659088e731147e0e4fd54bcc4287d6d3..a7ba283b25af37181e6f9a20eebade64735fab9e 100644 (file)
 
 // Issue #7580
 
-// ignore-pretty
-//
-// Expanded pretty printing causes resolve conflicts.
-
 // error-pattern:panic works
 
 use std::*;
index d2b598a7933bcd86f128cbffdd484c5a83d3ee52..641d39e2324b8a509aa4e2d7c39c61a9724cb17e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:attempt to calculate the remainder with a divisor of zero
 
 fn main() {
index acc7676db457efd8d71c8264b37acd7b989562cd..250f0726dc9d61d0e83f547e0e40e58e2b94a0f4 100644 (file)
@@ -8,12 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to add with overflow'
 // compile-flags: -C debug-assertions
 
-
 fn main() {
     let _x = 200u8 + 200u8 + 200u8;
 }
index 29ce3b0e6a16d7be8eb6fb2479fdd9b72b06baf3..baa1e05d559b6d2aed7535db85f265f5ecc0e3a2 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
 // compile-flags: -C debug-assertions
 
index 62fc9230f353d07f2f8426d86b349416391df3a0..3438ed2c77c1835c22c45833a7a8e2eb4276cd28 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
 // compile-flags: -C debug-assertions
 
index 1bc1703a89ce37702c59c1436c03c5fb5d259e40..ef5c43db6e285f30b5026a45fd6c7463f58f9cf3 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
 // compile-flags: -C debug-assertions
 
index 8de44f25e048967ec0d732654dcdf3ad8d718216..226ece6020db4e862d7e0b6e705fe191633dc8e0 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
 // compile-flags: -C debug-assertions
 
index a09c0f06a5cc6180f383100d8bf289ba20d7e076..b47d0fc4136ccaf316f07f26bc0bdc71364c7ef6 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
 // compile-flags: -C debug-assertions
 
index 96853fc565b716d4511d014f1e98b613833f7cd4..836d7e37319e941dcbda0ecbf1a6a7794f8d3cfc 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to negate with overflow'
 // compile-flags: -C debug-assertions
 
index ef4a503cfe42592d3674c2e479d714f7187a105b..8f198c887e491c9dcd32084fc0de8d86eefa7f6c 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index da072b5a9a5a999c39cd535109d51fd4126139c0..e4f260b2bbbbb130ff6f3065796b6e21e20f031d 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index 0b7809402e6db93222cc588bf1dfc1b8c4d590e1..11aa98a0c3cbc1d3f210cc120fdfcb63901f3ddc 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index 1e0cc18fbdcd63c9fb9e01a3ffac16f43a229240..742720e83c10cac96ff464efe0d7331a2353beaa 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index 690901ff0c25b0f95d855604e3fe7cef932466d8..6106fdcb16a46076c8d267480b596b9cf61d34a7 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index 6a6ed4f11f20ef3dc7711d832bad80e2c32f964f..d419550fcc5700547bac8c3adf106e46922d1404 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
 // compile-flags: -C debug-assertions
 
index 083e8d24467fd67148a2d7bff94c5182413adb33..f94cb31b16884cab216e40a23652d47dad572e27 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
 // compile-flags: -C debug-assertions
 
index 8158333ade818ae71af12135355cd246e10d6f13..3f75229948df0782c03cdb6a0163efe8c6206d5d 100644 (file)
@@ -11,7 +11,6 @@
 // error-pattern:runned an unexported test
 // compile-flags:--test
 // check-stdout
-// ignore-pretty: does not work well with `--test`
 
 mod m {
     pub fn exported() {}
index 21ced01d9d69efe619f8e23d79a72411bdf72b41..bb6f4abe1fc969d4428f85da4fddb4b9972c2003 100644 (file)
@@ -11,7 +11,6 @@
 // check-stdout
 // error-pattern:thread 'test_foo' panicked at
 // compile-flags: --test
-// ignore-pretty: does not work well with `--test`
 // ignore-emscripten
 
 #[test]
index 74b5f17bcf9bad053905f6d917fb3498f63d7b87..eac9813f180aee53478f590ba79c00383d8080e8 100644 (file)
@@ -11,7 +11,6 @@
 // check-stdout
 // error-pattern:thread 'test_foo' panicked at
 // compile-flags: --test
-// ignore-pretty: does not work well with `--test`
 // ignore-emscripten
 
 #[test]
index b5c222764d243ea33060ff3826da71884f908c42..fcf3559e7da66b3258471c877870ce225a212baa 100644 (file)
@@ -14,7 +14,6 @@
 // error-pattern:should be a positive integer
 // compile-flags: --test
 // exec-env:RUST_TEST_THREADS=foo
-// ignore-pretty: does not work well with `--test`
 // ignore-emscripten
 
 #[test]
index 8cc7ab4219dc54a466d089eeb6470491246f3585..47f5f8397d1c54cfda8179ae1cc6d08e77949b3e 100644 (file)
@@ -10,8 +10,6 @@
 
 // aux-build:custom_derive_partial_eq.rs
 // ignore-stage1
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 #![feature(plugin, custom_derive)]
 #![plugin(custom_derive_partial_eq)]
 #![allow(unused)]
index a439e2bb25b8c4df6b61dd223b6bb27c05f733da..3ab7f8429e60177f41d3b0bf589902b458c7d962 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
 // ignore-cross-compile
 
 #![feature(quote, rustc_private)]
index 829fdb176bd3198ef38a3d9c3d76b131a068c1bd..03311d76e46d43619f6c3a1731bcbbf68eb1e68c 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // ignore-cross-compile
-// ignore-pretty: does not work well with `--test`
-
 #![feature(quote, rustc_private)]
 
 extern crate syntax;
index 21942b84bff9c95261a4d6a39a5801f9932f739a..978a78cee4f1eeb7405e1d1a5c9e1d993675a1d3 100644 (file)
@@ -10,8 +10,6 @@
 
 // aux-build:lint_group_plugin_test.rs
 // ignore-stage1
-// ignore-pretty
-
 #![feature(plugin)]
 #![plugin(lint_group_plugin_test)]
 #![allow(dead_code)]
index 2a6daa5040b7189456f32228e35f0d694f471daf..2e86e11bd6a5fbe757dee9e239ed244702877093 100644 (file)
@@ -10,7 +10,6 @@
 
 // aux-build:lint_plugin_test.rs
 // ignore-stage1
-// ignore-pretty: Random space appears with the pretty test
 // compile-flags: -Z extra-plugins=lint_plugin_test
 
 #![allow(dead_code)]
index b694a1c332079969040f7fa24830f3825bf49e43..753ad33bd01e9c83be310b237597c8c020025d73 100644 (file)
@@ -10,8 +10,6 @@
 
 // aux-build:lint_plugin_test.rs
 // ignore-stage1
-// ignore-pretty
-
 #![feature(plugin)]
 #![plugin(lint_plugin_test)]
 #![allow(dead_code)]
index 710e2fd1d07a38ab3b7c36c0f03064ec514de4e9..9e9b7ce5bf29d2f80de3631ea1b6da9624991272 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // ignore-cross-compile
-// ignore-pretty: does not work well with `--test`
-
 #![feature(quote, rustc_private)]
 
 extern crate syntax;
index 460eab998c6fb473e5515ec4a444a31be66cd3e1..d3be1ddcb8c32f274983f7b1649e0b8a83ba0853 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // ignore-cross-compile
-// ignore-pretty: does not work well with `--test`
-
 #![feature(quote, rustc_private)]
 #![deny(unused_variables)]
 
index 7cf75924a28c0c7fd67bcb941694986bdeeda972..2815863fe9961ed41a390abbd0dfc2be231b456b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // no-prefer-dynamic
 
 #![allow(dead_code)]
index 838005cbc91194ad8c05eea3ec3f2d1320ef390e..72cf109fd5974e972f3fc8537dd1be0af9cb5744 100644 (file)
@@ -16,7 +16,7 @@
 // "enable" to 0 instead.
 
 // compile-flags:-g -Cllvm-args=-enable-tail-merge=0
-// ignore-pretty as this critically relies on line numbers
+// ignore-pretty issue #37195
 // ignore-emscripten spawning processes is not supported
 
 use std::io;
index f26706d1754e018715d6af38de71dd730460367e..c438c17f51e3a61a53303f3eef45be12a4d96bb5 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// no-pretty-expanded FIXME #15189
 // ignore-android FIXME #17520
 // ignore-emscripten spawning processes is not supported
 // compile-flags:-g
index b29cb63f6fa3b3f42cf638570183aca77612f740..8de45e4205dfb9a7afd3db6957c8a08611870d4d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37199
 
 fn match_ref(v: Option<isize>) -> isize {
     match v {
index 06f679b7fca9a0870c4801ef9e43ab4fc279a4ee..5dd6fa45bb96e457f42657c340d625ebd445124d 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // compile-flags: --cfg bar -D warnings
-// ignore-pretty
-
 #![cfg(bar)]
 
 fn main() {}
index 130526e72b19cadf6623bbd7859085256df9c83b..5be9b97aac7e6ac6f3a432f37c46cbf8353edda7 100644 (file)
@@ -9,9 +9,8 @@
 // except according to those terms.
 
 // ignore-windows - this is a unix-specific test
+// ignore-pretty issue #37199
 // ignore-emscripten
-// ignore-pretty
-
 #![feature(process_exec)]
 
 use std::env;
index ffcc1891c579e22357bb0fd210dff143caa6cd67..c5b5b6b24ab1cd72733cb654a5de9e2830eae0b9 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
 // compile-flags:--test
 // ignore-emscripten
 
index 7960a91bdc4fc125499aa200718270a63a80e178..1a2be7a719e1767dc08c81f183fe4b0cd1b9ba6b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 mod foo {
     #![macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
     //~^ HELP consider an outer attribute
index b03905e1a0d63f2a8696aadb9667c8194dcf3127..b9f756cc79c8f93e9a16ab2e9b25fe70b880ad40 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #[macro_escape] //~ WARNING macro_escape is a deprecated synonym for macro_use
 mod foo {
 }
index b1cd1877a7667101e40d76165de5f2f76a70f196..b2add21dcd487f40ebc378ed108512366dd5ada1 100644 (file)
@@ -8,9 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// no-pretty-expanded FIXME #15189
-
-
 #[derive(PartialEq, Eq, PartialOrd, Ord)]
 enum E<T> {
     E0,
index ff513325d5e6846260780b0ffdf117778f249c01..ed8a50998daeefc57680e26433391d917df813d1 100644 (file)
@@ -1,5 +1,3 @@
-// ignore-pretty
-
 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
index 21996c5fabf1a30c2bd310c158dbfa888a844749..26deb0ed72adec4414b34aea0a7382a7f227713b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 //
-// ignore-pretty
-
 #![warn(variant_size_differences)]
 #![allow(dead_code)]
 
index 5b45f1e0d392896a8176dfa12ed08e7d905202cc..2aa5f59cda62d4286a44cea7324542d6bd9db1d0 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty: pprust doesn't print hygiene output
-
 // Test that labels injected by macros do not break hygiene.  This
 // checks cases where the macros invocations are under the rhs of a
 // let statement.
index 0ebe1ca07c77180259d1b97e61ae3a154a256520..c9af2b190b21c781bc491cccefc3fb1fcbdeee64 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// no-pretty-expanded unnecessary unsafe block generated
-
 #![deny(warnings)]
 #![allow(unused_must_use)]
 #![allow(unused_features)]
index 9851dfe0262f8ce28a17fd645ed78a9bbd0f7740..195b99c9788e893ccdf0ca67649df55ce3c6650b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when ending with // comments
-
 #![feature(item_like_imports)]
 #![allow(unused)]
 
index cfff7eb339522e692b56688a2161bb5a6add7506..88d74a65813be014e3aee538f67a4c6cffd908af 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37199
 
 // Don't panic on blocks without results
 // There are several tests in this run-pass that raised
index 24340ac3f13d7013e66e9018e1d81122b38ca9fe..35faa5789a9c87aa96a27b8c91e41fb5d4bc3c44 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 macro_rules! third {
     ($e:expr) => ({let x = 2; $e[x]})
 }
index 975557726ce8b2a7be680c2b7a3eccbe951aba4f..177550a0dd4a1c9b484e2eedb5d1fed42dd5c7cc 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 use std::rc::Rc;
 use std::cell::Cell;
 
index a6a1c5f16b31cd3f909565173992ae1f30773286..c51e33c01040bb3eb2412e9a0dc7ae6377a3fe60 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // compile-flags:--test
-// no-pretty-expanded
 
 // This verifies that the test generation doesn't crash when we have
 // no tests - for more information, see PR #16892.
index 7f0a341f147154499f9ac1b28a9608e072121a29..583d8d46235d6290cddb3a550b5f5f7125266c2d 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // compile-flags:--test
-// ignore-pretty turns out the pretty-printer doesn't handle gensym'd things...
 
 mod tests {
     use super::*;
index 0fd99650284895297a2419795aeb510ec7695471..18861feb1997aabe999d367f332806791b0719c7 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #![allow(unknown_features)]
 
 struct Parser<'a, I, O> {
index 70217868a54b834e3ae21a01f9f6ee9b4ee1ccaa..dff86bc1b4527ea583ce85e1bec2608775a302db 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #![deny(dead_code)]
 
 const LOW_RANGE: char = '0';
index dd3d952224c057edcb1070ba5ca5f0c96bde6867..985ca067350a35a3a253a02ef0604a1312dd70cc 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // aux-build:i8.rs
-// ignore-pretty (#23623)
+// ignore-pretty issue #37201
 
 extern crate i8;
 use std::string as i16;
index c297998b6493a08575bb65b5f8c4392735dab09a..4d31d0cedb6d5bcbe8bab087c3276c9133510ab4 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // compile-flags: --test
-// no-pretty-expanded
 
 #![deny(unstable)]
 
index ca8f804482aa1cf1177a810f30f3f609f201e5dc..dc612fc0bc71c294af7a3890cf9b0fb6f1352adc 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37201
 
 struct X { val: i32 }
 impl std::ops::Deref for X {
index fb84e7bae514d25649de5866126f4c2695ab1f45..9d0612f2a8daa75bdaa2d154be0b6626c3d49604 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
+// ignore-pretty issue #37201
 
 // This test is ensuring that parameters are indeed dropped after
 // temporaries in a fn body.
index aa525ae95192eddd61bed89a74011a452d736a1d..51bf4bfe0e13e7bff26cb5f113ef11e5cad3ed0f 100644 (file)
@@ -7,10 +7,9 @@
 // <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.
-//
-// ignore-pretty
+
+// ignore-pretty issue #37195
 
 mod issue_26873_multifile;
 
 fn main() {}
-
index ab8f22e78be725eb8ada2bab60d8ae1d4a0f7c32..37dc060d5d64d4238c3147a9bd818162f4b08d8b 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty #27582
+// ignore-pretty issue #37201
 
 // Check that when a `let`-binding occurs in a loop, its associated
 // drop-flag is reinitialized (to indicate "needs-drop" at the end of
index 44c1eb86de8df27d654628a06b7c6cef9a297c54..ce1abb163d53b3d046c8bd206d7ab4daf8b3d7d3 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 fn main() {
     const iter: i32 = 0;
 
index a1012296626e27db77d765f0144ca6829147caa6..2ff4403a42f9781c98f3005b6a9fd5fe3e5b234c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems with newlines before // comments
+// ignore-pretty issue #37199
 
 pub struct Foo;
 
index 75bcd431ec8e190ca5b9a45676bfdd70cfacc462..eb7b740db6e4bf74f52906c36a1d6256f01d3723 100644 (file)
@@ -11,8 +11,6 @@
 // Regression test for #29740. Inefficient MIR matching algorithms
 // generated way too much code for this sort of case, leading to OOM.
 
-// ignore-pretty
-
 pub mod KeyboardEventConstants {
     pub const DOM_KEY_LOCATION_STANDARD: u32 = 0;
     pub const DOM_KEY_LOCATION_LEFT: u32 = 1;
index e83939e7aec6be6308c627022d2cede26064124a..dca387dcc2117ce549e00b2ea1b7dc094c83b602 100644 (file)
@@ -10,8 +10,6 @@
 
 // compile-flags:--test
 // rustc-env:RUSTC_BOOTSTRAP_KEY=
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 #![cfg(any())] // This test should be configured away
 #![feature(rustc_attrs)] // Test that this is allowed on stable/beta
 #![feature(iter_arith_traits)] // Test that this is not unused
index 5324ddb49e79f7e2f9c0983b48b16116da527fae..764d6fa7918052083b398044a5b6fbf46a111137 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 // (Closes #7911) Test that we can use the same self expression
 // with different mutability in macro in two methods
 
index f16057ccab16cbbae5f37db9c44e6c30f457d21b..5148be5af8307b208c504157c5eab6756e1312ba 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // ignore-emscripten no threads support
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 #![feature(rustc_attrs, zero_one)]
 
 use std::num::Zero;
index 99db47c172e21fbba778f6dbdb0c7eb3d7bc5525..c46e8494e73b8dd38f7182307c94e637593c9764 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty unreported
 
 #![allow(unknown_features)]
 #![feature(box_syntax)]
index 5c8db524cc2edeec729b4efb9949333bace83422..05f1f1bfea0fb03318f47a1b52d566aa5479140c 100644 (file)
@@ -15,7 +15,7 @@
 // NB: this file needs CRLF line endings. The .gitattributes file in\r
 // this directory should enforce it.\r
 \r
-// ignore-pretty\r
+// ignore-pretty issue #37195\r
 \r
 /// Doc comment that ends in CRLF\r
 pub fn foo() {}\r
index ddb4e40aea6332a9b772efb71a346dad3b939a39..3da2fc8ceacf73eb9c6f2ccf4341c076720371cf 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// no-pretty-expanded FIXME #15189
-
 pub fn main() {
     let x = vec!(1, 2, 3);
     let mut y = 0;
index 2cac9226117a29ae91e412f97d105c0039fd390a..801d92b6dcb160d10a8023ff3e8d9b9700375fb5 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
-
 pub fn main() {
 
     macro_rules! mylambda_tt {
index 60217139cd77804e60bc652b67b0de7552422ca2..c3de9f736fbe50fb5e01f69071812a9a0eb70a41 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
-
 macro_rules! descriptions {
     ($name:ident is $desc:expr) => {
         // Check that we will correctly expand attributes
index 2752fc88b456b2b45c171d1a19bdf4d27d4f768d..839fee3a2d214484fe5b86bf641b39b394b130ca 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
-
 #![feature(custom_attribute)]
 
 macro_rules! compiles_fine {
index 1e31c85afad622d43c405bdbc3bf330f712da2d5..f8728ebb91517e3c6f731f016f5d1e8ddcb62b72 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 fn bar() {}
 
index 605cade2b3f7e556dbc864d34179cc713cbbd958..9c1e1fca3413ef0443f378470aae83d04ddc884c 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
 // compile-flags: --cfg foo
 
 macro_rules! compiles_fine {
index f78f93e84810c8108d130ff63af29ac72749917d..190bfc53a9edb6db68e6875726b38c70d87d00e9 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
-
 macro_rules! make_foo {
     () => (
         struct Foo;
index 0d8b86012d6e0285dcb9c04f596a40653b05f360..027df9f93a88dc5101cdb66cd04ee556aa80fdd7 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty - token trees can't pretty print
-
 macro_rules! myfn {
     ( $f:ident, ( $( $x:ident ),* ), $body:block ) => (
         fn $f( $( $x : isize),* ) -> isize $body
index c9fd88f2fb3cfba15dac2d00005680145de62c5b..846318ec4fd347d7fe265f9cdbdc2645fd5a04bd 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 // check raw fat pointer ops in mir
 // FIXME: please improve this when we get monomorphization support
 
index 1b89464c543ce2aaffff77f76a75353dee57039f..f8034f9e0738613824b81dad88f8af3d12d5ad84 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 mod mod_dir_implicit_aux;
 
index 28dee15cfa04399e1ebe61bbe7d33b324c03bff5..e2f33963c4bad25318bc35eabe38dd7236fc9d26 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 mod mod_dir_simple {
     #[path = "test.rs"]
index 2b5e67a6e839683678688adfe6486cbb97ef62a1..b96c1ae072243c0322268b4dabd450b0f3edad0b 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 #[path = "mod_dir_simple"]
 mod pancakes {
index d6037bef6e5765147af6d3df0fc53541e173221f..3160064d7c2447505ee27aa8042100c9d7680621 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 #[path = "mod_dir_simple"]
 mod pancakes {
index f1bf83ed767f7b9bc74aff964c6e143e5c02ccff..12b28cf98af0ba2139961cfe57de392c330e601a 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 #[path = "mod_dir_simple"]
 mod biscuits {
index d7121ef769078a43e35d0d738369b47024d2f58e..8964d9ccd2527d4cf71523b3526c99fb3ee598af 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 // Testing that the parser for each file tracks its modules
 // and paths independently. The load_another_mod module should
index 41c810b6fddab6b49a1d5095de8a2a25bf1da0f9..429b4ebe63970a407c594f898f5b97f4055f1d12 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 mod mod_dir_simple {
     pub mod test;
index ddda38bafd369c8ce69894f003ddd2dcd3bc2539..c18fecd7c569e09e469cee74d3c5dd981130e285 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 // Testing that a plain .rs file can load modules from other source files
 
index c6e51daaaf054a6957b60f37ee3b82ce2e47fbbc..d9f28ceb0ecacaf93cc99836ca96f10bd6e4787c 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
+// ignore-pretty issue #37195
 
 // Testing that a plain .rs file can load modules from other source files
 
index b1d71abc78599c0bb908e08513fa12cedb0d6df9..15ece09abd80f4091b287bcd73a78fa91640547c 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// no-pretty-expanded
-
 // This file is intended to test only that methods are automatically
 // reachable for each numeric type, for each exported impl, with no imports
 // necessary. Testing the methods of the impls is done within the source
index 309ae1bcc56eceb6151b35af5aff7a8cf0b87ecc..88e3e6ba4acd3480ebffb5d12cab049a8fd254f3 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
 // compile-flags:--test
 
 #![reexport_test_harness_main = "test_main"]
index a06e0f6da785a1c7a4dc5079bb89b605627e2b84..47d2fe363d3694df3668d34dddcacfac93bd2808 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #![feature(issue_5723_bootstrap)]
 
 trait Foo {
index 996583dc6de93eb49b1b9cfe67d7865f58636b28..72db92aa93ce04264c01ec5c107ab1dc5dd493cb 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #![feature(issue_5723_bootstrap)]
 
 trait Foo {
index 15ab21bbc8da7bcdbdbd14d70de513214f469294..a0947cd49a42d6b9e989ef604a3b1ba3330bfb2e 100644 (file)
@@ -9,7 +9,4 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty: `expand` adds some preludes before shebang
-//
-
 pub fn main() { println!("Hello World"); }
index 5cb57b63ada2c24e50c8d60e971d783c1909ee91..f0444c27170561550a80c85b48e8e4f3f17dd2c1 100644 (file)
@@ -10,8 +10,6 @@
 
 #![feature(repr_simd, platform_intrinsics)]
 
-// ignore-pretty : (#23623) problems when  ending with // comments
-
 #[repr(simd)]
 #[derive(Copy, Clone, Debug, PartialEq)]
 #[allow(non_camel_case_types)]
index b764a983a0c0960aa872a4c00c0982f5cc7f0456..a1bbd190211272170958c3b7a4a4a401edf85529 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-//
 // exec-env:RUST_MIN_STACK=16000000
 // rustc-env:RUST_MIN_STACK=16000000
 //
index 2f52e424936ea321874bb63c838cd8d1eaa2e6dc..3b5f033d07b7d3101598d4e2fc4a9223a2ff2e13 100644 (file)
@@ -8,10 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
-// This test is brittle!
-// ignore-pretty - the pretty tests lose path information, breaking include!
+// ignore-pretty issue #37195
 
 pub mod m1 {
     pub mod m2 {
@@ -24,9 +21,9 @@ pub fn where_am_i() -> String {
 macro_rules! indirect_line { () => ( line!() ) }
 
 pub fn main() {
-    assert_eq!(line!(), 27);
+    assert_eq!(line!(), 24);
     assert_eq!(column!(), 4);
-    assert_eq!(indirect_line!(), 29);
+    assert_eq!(indirect_line!(), 26);
     assert!((file!().ends_with("syntax-extension-source-utils.rs")));
     assert_eq!(stringify!((2*3) + 5).to_string(), "( 2 * 3 ) + 5".to_string());
     assert!(include!("syntax-extension-source-utils-files/includeme.\
@@ -43,5 +40,5 @@ pub fn main() {
     // The Windows tests are wrapped in an extra module for some reason
     assert!((m1::m2::where_am_i().ends_with("m1::m2")));
 
-    assert_eq!((46, "( 2 * 3 ) + 5"), (line!(), stringify!((2*3) + 5)));
+    assert_eq!((43, "( 2 * 3 ) + 5"), (line!(), stringify!((2*3) + 5)));
 }
index 0e8542bababdda6190fbe4d495cbd88cae4f0801..78f29f46edf4a08b2bb4cd64c8d3b36129a7e612 100644 (file)
@@ -11,7 +11,6 @@
 #![feature(std_misc)]
 
 // ignore-emscripten no threads support
-// no-pretty-expanded FIXME #15189
 
 use std::thread;
 use std::sync::mpsc::{channel, Sender};
index d58b5d3a00fece428918bcfd2e27a060021b8114..10ad838d3cb87cc9f29db32fe176554ab3a643e6 100644 (file)
@@ -11,7 +11,6 @@
 #![feature(test)]
 
 // compile-flags: --test
-// no-pretty-expanded
 extern crate test;
 
 #[bench]
index 839e91f3793d4e9d6d7e6578c5f7ea86ba7a5533..7b696c1f8d27c52b5f5830b7d4131ef5999b1d54 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // compile-flags:--test
-// ignore-pretty: does not work well with `--test`
-
 // Building as a test runner means that a synthetic main will be run,
 // not ours
 pub fn main() { panic!(); }
index 28698499303a9ad0caf741bcdbd4f557d72d024c..e665fa4fc7b58e5cff0f0374a1b82cd6612170b6 100644 (file)
@@ -9,8 +9,6 @@
 // except according to those terms.
 
 // compile-flags: --test
-// ignore-pretty: does not work well with `--test`
-
 #[test]
 #[should_panic(expected = "foo")]
 pub fn test_foo() {
index 0de6fbc91cc6b4e9af75fd5508fef6c6e147d3aa..f7fd86c9570703cc8fe7454f53094608479f9c9c 100644 (file)
@@ -12,8 +12,6 @@
 // and shared between threads as long as all types fulfill Send.
 
 // ignore-emscripten no threads support
-// ignore-pretty
-
 #![allow(unknown_features)]
 #![feature(box_syntax, std_misc)]
 
index 5a1424830d07480288f9b47f287f39109baa3deb..6cb7e82d6b740546bc4380150b1d9a23fc08bac0 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-pretty
-
 #![feature(untagged_unions)]
 #![allow(dead_code)]
 #![allow(unions_with_drop_fields)]