mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
Improve error message of drop bombs
This commit is contained in:
parent
fdf1477221
commit
9634633889
@ -45,7 +45,7 @@ impl Drop for DropBomb {
|
||||
fn drop(&mut self) {
|
||||
if !self.defused && !std::thread::panicking() {
|
||||
panic!(
|
||||
"command constructed but not executed at {}: `{}`",
|
||||
"command constructed at `{}` was dropped without being executed: `{}`",
|
||||
self.armed_location,
|
||||
self.command.to_string_lossy()
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user