Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Apply comments from the rust-lang#94016 review by @yaahc
  • Loading branch information
nyurik committed Apr 30, 2023
1 parent 8348b5a commit 68d25de
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions library/core/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,17 @@ fn assert_failed_inner(

match args {
Some(args) => panic!(
r#"assertion failed: `({left_name} {} {right_name})`
left: `{:?}`,
right: `{:?}`:
at: {}"#,
op, left_val, right_val, args
r#"assertion failed: `({left_name} {op} {right_name})`
error: {args},
left: `{left_val:?}`,
right: `{right_val:?}`
at: "#
),
None => panic!(
r#"assertion failed: `({left_name} {} {right_name})`
left: `{:?}`,
right: `{:?}`"#,
op, left_val, right_val,
r#"assertion failed: `({left_name} {op} {right_name})`
left: `{left_val:?}`,
right: `{right_val:?}`
at: "#
),
}
}

0 comments on commit 68d25de

Please sign in to comment.