From 39d99a1a14490a641777933d3f691773819b2c9f Mon Sep 17 00:00:00 2001 From: luojia65 Date: Sat, 4 Dec 2021 17:47:07 +0800 Subject: [PATCH] rustdoc: Add readable rustdoc display for RISC-V target use format 'RISC-V RV32' and 'RISC-V RV64' --- src/librustdoc/clean/cfg.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustdoc/clean/cfg.rs b/src/librustdoc/clean/cfg.rs index 9b5ca068486..90d7db4544b 100644 --- a/src/librustdoc/clean/cfg.rs +++ b/src/librustdoc/clean/cfg.rs @@ -497,6 +497,8 @@ fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { "msp430" => "MSP430", "powerpc" => "PowerPC", "powerpc64" => "PowerPC-64", + "riscv32" => "RISC-V RV32", + "riscv64" => "RISC-V RV64", "s390x" => "s390x", "sparc64" => "SPARC64", "wasm32" | "wasm64" => "WebAssembly",