Auto merge of #2130 - RalfJung:rustup, r=RalfJung

rustup

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

Cc https://github.com/rust-lang/rust/issues/97204
This commit is contained in:
bors 2022-05-20 06:09:13 +00:00
commit d419efdba8
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
77972d2d0134fb597249b3b64dcf9510a790c34e
f24ef2e296ec6fc6fd2e24d7e4bfec3f4cb0577a

View File

@ -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())
}
}

View File

@ -8,7 +8,7 @@ struct TestCell {
impl Drop for TestCell {
fn drop(&mut self) {
eprintln!("Dropping: {}", self.value.borrow())
eprintln!("Dropping: {}", *self.value.borrow())
}
}