1
Fork 0

Implement LowerHex on Scalar to clean up their display in rustdoc

This commit is contained in:
Guillaume Gomez 2022-02-20 16:43:21 +01:00
parent 6d7aa4763f
commit c358ffe7b3
4 changed files with 14 additions and 14 deletions

View file

@ -697,7 +697,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
this.ecx.read_discriminant(op),
this.path,
err_ub!(InvalidTag(val)) =>
{ "{}", val } expected { "a valid enum tag" },
{ "{:x}", val } expected { "a valid enum tag" },
err_ub!(InvalidUninitBytes(None)) =>
{ "uninitialized bytes" } expected { "a valid enum tag" },
err_unsup!(ReadPointerAsBytes) =>