diff options
| author | oldmanmike <oldmanmike.dev@gmail.com> | 2016-11-07 13:59:48 -0500 |
|---|---|---|
| committer | oldmanmike <oldmanmike.dev@gmail.com> | 2016-11-07 13:59:48 -0500 |
| commit | 5a2997d3d8fca8292a7b1fa34ef65a56434d5a16 (patch) | |
| tree | 3f6898826bb00e42c4f49f8500d2a024cb64b051 | |
| parent | e2ca47ab1ae72f1618a286292517008580d1b273 (diff) | |
| download | rust-5a2997d3d8fca8292a7b1fa34ef65a56434d5a16.tar.gz rust-5a2997d3d8fca8292a7b1fa34ef65a56434d5a16.zip | |
Fix typos and redundant code
| -rw-r--r-- | src/test/incremental/hashes/unary_and_binary_exprs.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/incremental/hashes/unary_and_binary_exprs.rs b/src/test/incremental/hashes/unary_and_binary_exprs.rs index 54d245e4593..2c0ca004312 100644 --- a/src/test/incremental/hashes/unary_and_binary_exprs.rs +++ b/src/test/incremental/hashes/unary_and_binary_exprs.rs @@ -156,7 +156,7 @@ pub fn first_var_add(a: i32, b: i32) -> i32 { #[rustc_metadata_dirty(cfg="cfail2")] #[rustc_metadata_clean(cfg="cfail3")] pub fn first_var_add(a: i32, b: i32) -> i32 { - b + 3 + b + 2 } @@ -471,8 +471,8 @@ pub fn lvalue() -> i32 { pub fn lvalue() -> i32 { let mut x = 10; let mut y = 11; - x = 9; - y + y = 9; + x } @@ -481,7 +481,6 @@ pub fn lvalue() -> i32 { #[cfg(cfail1)] pub fn rvalue() -> i32 { let mut x = 10; - let mut y = 11; x = 9; x } @@ -493,7 +492,6 @@ pub fn rvalue() -> i32 { #[rustc_metadata_clean(cfg="cfail3")] pub fn rvalue() -> i32 { let mut x = 10; - let mut y = 11; x = 8; x } |
