File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tools/build_helper/src/drop_bomb Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mod tests;
1515pub struct DropBomb {
1616 command : OsString ,
1717 defused : bool ,
18- armed_line : u32 ,
18+ armed_location : panic :: Location < ' static > ,
1919}
2020
2121impl DropBomb {
@@ -27,7 +27,7 @@ impl DropBomb {
2727 DropBomb {
2828 command : command. as_ref ( ) . into ( ) ,
2929 defused : false ,
30- armed_line : panic:: Location :: caller ( ) . line ( ) ,
30+ armed_location : * panic:: Location :: caller ( ) ,
3131 }
3232 }
3333
@@ -41,8 +41,8 @@ impl Drop for DropBomb {
4141 fn drop ( & mut self ) {
4242 if !self . defused && !std:: thread:: panicking ( ) {
4343 panic ! (
44- "command constructed but not executed at line {}: `{}`" ,
45- self . armed_line ,
44+ "command constructed but not executed at {}: `{}`" ,
45+ self . armed_location ,
4646 self . command. to_string_lossy( )
4747 )
4848 }
You can’t perform that action at this time.
0 commit comments