diff options
| author | bors <bors@rust-lang.org> | 2014-02-07 11:26:29 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-07 11:26:29 -0800 |
| commit | 56565eb129018a708445afcd6ea14f5b51cf27e5 (patch) | |
| tree | 6ac3203e6798df65908f65ec403f99f19400bea3 /src/test/compile-fail/use-after-move-implicity-coerced-object.rs | |
| parent | ca40da8b55a04394f1db11b6c7410e49b63c6e04 (diff) | |
| parent | 730bdb6403dd47b98c1be6c4b3423edb28ca9477 (diff) | |
| download | rust-56565eb129018a708445afcd6ea14f5b51cf27e5.tar.gz rust-56565eb129018a708445afcd6ea14f5b51cf27e5.zip | |
auto merge of #12055 : dguenther/rust/tidy_test, r=alexcrichton
This PR extends the tidy formatting check to rust files in the test folder. To facilitate this, a few flags were added to tidy: * `xfail-tidy-cr` - Disables the check for CR characters for all following lines in the file * `xfail-tidy-tab` - Disables the check for tab characters for all following lines in the file * `xfail-tidy-linelength` - Disables the line length check for all following lines in the file Checks should not have to be disabled often. I disabled line length checks in `debug-info` tests that use `debugger:` checks, but aside from that, there were relatively few exclusions. Running tidy on all the tests does slow down the formatting check, so it may be worth investigating further optimization. cc #4534
Diffstat (limited to 'src/test/compile-fail/use-after-move-implicity-coerced-object.rs')
| -rw-r--r-- | src/test/compile-fail/use-after-move-implicity-coerced-object.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/use-after-move-implicity-coerced-object.rs b/src/test/compile-fail/use-after-move-implicity-coerced-object.rs index bef6165d120..d79461a577e 100644 --- a/src/test/compile-fail/use-after-move-implicity-coerced-object.rs +++ b/src/test/compile-fail/use-after-move-implicity-coerced-object.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// xfail-tidy-linelength + struct Number { n: i64 } @@ -32,6 +34,6 @@ fn main() { let n = ~Number { n: 42 }; let mut l = ~List { list: ~[] }; l.push(n); - //^~ NOTE: `n` moved here because it has type `~Number`, which is non-copyable (perhaps you meant to use clone()?) - let x = n.to_str(); //~ ERROR: use of moved value: `n` + let x = n.to_str(); + //~^ ERROR: use of moved value: `n` } |
