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;
15
15
pub struct DropBomb {
16
16
command : OsString ,
17
17
defused : bool ,
18
- armed_line : u32 ,
18
+ armed_location : panic :: Location < ' static > ,
19
19
}
20
20
21
21
impl DropBomb {
@@ -27,7 +27,7 @@ impl DropBomb {
27
27
DropBomb {
28
28
command : command. as_ref ( ) . into ( ) ,
29
29
defused : false ,
30
- armed_line : panic:: Location :: caller ( ) . line ( ) ,
30
+ armed_location : * panic:: Location :: caller ( ) ,
31
31
}
32
32
}
33
33
@@ -41,8 +41,8 @@ impl Drop for DropBomb {
41
41
fn drop ( & mut self ) {
42
42
if !self . defused && !std:: thread:: panicking ( ) {
43
43
panic ! (
44
- "command constructed but not executed at line {}: `{}`" ,
45
- self . armed_line ,
44
+ "command constructed but not executed at {}: `{}`" ,
45
+ self . armed_location ,
46
46
self . command. to_string_lossy( )
47
47
)
48
48
}
You can’t perform that action at this time.
0 commit comments