Skip to content

Commit

Permalink
Auto merge of #2130 - RalfJung:rustup, r=RalfJung
Browse files Browse the repository at this point in the history
rustup

`Display` of `Ref`/`RefMut` was broken by rust-lang/rust#97027, let's deref them to use the underlying reference `Display`.

Cc rust-lang/rust#97204
  • Loading branch information
bors committed May 20, 2022
2 parents 9230b92 + a941af8 commit d419efd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77972d2d0134fb597249b3b64dcf9510a790c34e
f24ef2e296ec6fc6fd2e24d7e4bfec3f4cb0577a
2 changes: 1 addition & 1 deletion tests/run-pass/concurrency/tls_lib_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct TestCell {
impl Drop for TestCell {
fn drop(&mut self) {
for _ in 0..10 { thread::yield_now(); }
println!("Dropping: {} (should be before 'Continue main 1').", self.value.borrow())
println!("Dropping: {} (should be before 'Continue main 1').", *self.value.borrow())
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/run-pass/concurrency/tls_lib_drop_single_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct TestCell {

impl Drop for TestCell {
fn drop(&mut self) {
eprintln!("Dropping: {}", self.value.borrow())
eprintln!("Dropping: {}", *self.value.borrow())
}
}

Expand Down

0 comments on commit d419efd

Please sign in to comment.