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:
commit
d419efdba8
@ -1 +1 @@
|
||||
77972d2d0134fb597249b3b64dcf9510a790c34e
|
||||
f24ef2e296ec6fc6fd2e24d7e4bfec3f4cb0577a
|
||||
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ struct TestCell {
|
||||
|
||||
impl Drop for TestCell {
|
||||
fn drop(&mut self) {
|
||||
eprintln!("Dropping: {}", self.value.borrow())
|
||||
eprintln!("Dropping: {}", *self.value.borrow())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user