File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -274,10 +274,10 @@ pub fn dump_range(
274
274
}
275
275
276
276
empty_line = false ;
277
- #[ allow( clippy:: match_bool) ]
278
277
match fmt. name_display {
279
278
crate :: opts:: NameDisplay :: Full => safeprintln ! ( "{line:#}" ) ,
280
- _ => safeprintln ! ( "{line}" ) ,
279
+ crate :: opts:: NameDisplay :: Short => safeprintln ! ( "{line}" ) ,
280
+ crate :: opts:: NameDisplay :: Mangled => safeprintln ! ( "{line:-}" ) ,
281
281
}
282
282
}
283
283
}
Original file line number Diff line number Diff line change @@ -57,7 +57,12 @@ impl std::fmt::Display for Instruction<'_> {
57
57
write ! ( f, "{}" , color!( self . op, OwoColorize :: bright_blue) ) ?;
58
58
}
59
59
if let Some ( args) = self . args {
60
- let args = demangle:: contents ( args, f. alternate ( ) ) ;
60
+ let args = if f. sign_minus ( ) {
61
+ // Do not demangle
62
+ Cow :: from ( args)
63
+ } else {
64
+ demangle:: contents ( args, f. alternate ( ) )
65
+ } ;
61
66
let w_label = demangle:: color_local_labels ( & args) ;
62
67
let w_comment = demangle:: color_comment ( & w_label) ;
63
68
write ! ( f, " {w_comment}" ) ?;
@@ -78,7 +83,9 @@ impl std::fmt::Display for Statement<'_> {
78
83
}
79
84
}
80
85
Statement :: Instruction ( i) => {
81
- if f. alternate ( ) {
86
+ if f. sign_minus ( ) {
87
+ write ! ( f, "\t {i:-#}" )
88
+ } else if f. alternate ( ) {
82
89
write ! ( f, "\t {i:#}" )
83
90
} else {
84
91
write ! ( f, "\t {i}" )
You can’t perform that action at this time.
0 commit comments