Skip to content

Commit 5a2997d

Browse files
author
oldmanmike
committed
Fix typos and redundant code
1 parent e2ca47a commit 5a2997d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/incremental/hashes/unary_and_binary_exprs.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn first_var_add(a: i32, b: i32) -> i32 {
156156
#[rustc_metadata_dirty(cfg="cfail2")]
157157
#[rustc_metadata_clean(cfg="cfail3")]
158158
pub fn first_var_add(a: i32, b: i32) -> i32 {
159-
b + 3
159+
b + 2
160160
}
161161

162162

@@ -471,8 +471,8 @@ pub fn lvalue() -> i32 {
471471
pub fn lvalue() -> i32 {
472472
let mut x = 10;
473473
let mut y = 11;
474-
x = 9;
475-
y
474+
y = 9;
475+
x
476476
}
477477

478478

@@ -481,7 +481,6 @@ pub fn lvalue() -> i32 {
481481
#[cfg(cfail1)]
482482
pub fn rvalue() -> i32 {
483483
let mut x = 10;
484-
let mut y = 11;
485484
x = 9;
486485
x
487486
}
@@ -493,7 +492,6 @@ pub fn rvalue() -> i32 {
493492
#[rustc_metadata_clean(cfg="cfail3")]
494493
pub fn rvalue() -> i32 {
495494
let mut x = 10;
496-
let mut y = 11;
497495
x = 8;
498496
x
499497
}

0 commit comments

Comments
 (0)