Fix ast_pretty for format_args for {:x?} and {:X?}.
They were accidentally swapped.
This commit is contained in:
@@ -708,10 +708,10 @@ pub fn reconstruct_format_args_template_string(pieces: &[FormatArgsPiece]) -> St
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if flags >> (rustc_parse_format::FlagDebugLowerHex as usize) & 1 != 0 {
|
if flags >> (rustc_parse_format::FlagDebugLowerHex as usize) & 1 != 0 {
|
||||||
template.push('X');
|
template.push('x');
|
||||||
}
|
}
|
||||||
if flags >> (rustc_parse_format::FlagDebugUpperHex as usize) & 1 != 0 {
|
if flags >> (rustc_parse_format::FlagDebugUpperHex as usize) & 1 != 0 {
|
||||||
template.push('x');
|
template.push('X');
|
||||||
}
|
}
|
||||||
template.push_str(match p.format_trait {
|
template.push_str(match p.format_trait {
|
||||||
FormatTrait::Display => "",
|
FormatTrait::Display => "",
|
||||||
|
|||||||
Reference in New Issue
Block a user