Skip to content

Commit

Permalink
Update test suite to nightly-2024-01-09
Browse files Browse the repository at this point in the history
    warning: variable does not need to be mutable
      --> tests/common/parse.rs:28:17
       |
    28 |             Err(mut diagnostic) => {
       |                 ----^^^^^^^^^^
       |                 |
       |                 help: remove this `mut`
       |
       = note: `#[warn(unused_mut)]` on by default

    warning: variable does not need to be mutable
       --> tests/test_round_trip.rs:109:21
        |
    109 |                 Err(mut diagnostic) => {
        |                     ----^^^^^^^^^^
        |                     |
        |                     help: remove this `mut`
  • Loading branch information
dtolnay committed Jan 9, 2024
1 parent 5e16fc2 commit a108467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/common/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn librustc_expr(input: &str) -> Option<P<ast::Expr>> {
.parse_expr();
match e {
Ok(expr) => Some(expr),
Err(mut diagnostic) => {
Err(diagnostic) => {
diagnostic.emit();
None
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_round_trip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ fn test(path: &Path, failed: &AtomicUsize, abort_after: usize) {
};
let after = match librustc_parse(back, &sess) {
Ok(after) => after,
Err(mut diagnostic) => {
Err(diagnostic) => {
errorf!("=== {}: librustc failed to parse", path.display());
diagnostic.emit();
return Err(false);
Expand Down

0 comments on commit a108467

Please sign in to comment.