From 39d99a1a14490a641777933d3f691773819b2c9f Mon Sep 17 00:00:00 2001 From: luojia65 Date: Sat, 4 Dec 2021 17:47:07 +0800 Subject: [PATCH 1/4] 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 9b5ca06848646..90d7db4544b4f 100644 --- a/src/librustdoc/clean/cfg.rs +++ b/src/librustdoc/clean/cfg.rs @@ -497,6 +497,8 @@ impl<'a> fmt::Display for Display<'a> { "msp430" => "MSP430", "powerpc" => "PowerPC", "powerpc64" => "PowerPC-64", + "riscv32" => "RISC-V RV32", + "riscv64" => "RISC-V RV64", "s390x" => "s390x", "sparc64" => "SPARC64", "wasm32" | "wasm64" => "WebAssembly", From f1f0734718b4413e22362ac31988259efb648311 Mon Sep 17 00:00:00 2001 From: pierwill Date: Thu, 24 Mar 2022 13:37:18 -0500 Subject: [PATCH 2/4] Fix inaccurate function name in `rustc_const_eval` docs --- compiler/rustc_const_eval/src/interpret/operand.rs | 4 ++-- compiler/rustc_const_eval/src/interpret/place.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index a8a5ac2f9d95d..8926676e815f9 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -520,8 +520,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { Ok(OpTy { op, layout: place.layout }) } - // Evaluate a place with the goal of reading from it. This lets us sometimes - // avoid allocations. + /// Evaluate a place with the goal of reading from it. This lets us sometimes + /// avoid allocations. pub fn eval_place_to_op( &self, place: mir::Place<'tcx>, diff --git a/compiler/rustc_const_eval/src/interpret/place.rs b/compiler/rustc_const_eval/src/interpret/place.rs index df6e05bb13cde..e23c6f2a95419 100644 --- a/compiler/rustc_const_eval/src/interpret/place.rs +++ b/compiler/rustc_const_eval/src/interpret/place.rs @@ -625,7 +625,7 @@ where } /// Computes a place. You should only use this if you intend to write into this - /// place; for reading, a more efficient alternative is `eval_place_for_read`. + /// place; for reading, a more efficient alternative is `eval_place_to_op`. #[instrument(skip(self), level = "debug")] pub fn eval_place( &mut self, From 831bd969674fd8afa751b13db543d58b2176c98c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 11 May 2022 09:14:31 +0200 Subject: [PATCH 3/4] rustc_log: add env var to set verbose entry/exit behavior --- compiler/rustc_log/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs index f5e7435d36e36..c152815eeca68 100644 --- a/compiler/rustc_log/src/lib.rs +++ b/compiler/rustc_log/src/lib.rs @@ -67,11 +67,24 @@ pub fn init_env_logger(env: &str) -> Result<(), Error> { Err(VarError::NotUnicode(_value)) => return Err(Error::NonUnicodeColorValue), }; + let verbose_entry_exit = match env::var_os(String::from(env) + "_ENTRY_EXIT") { + None => false, + Some(v) => { + if &v == "0" { + false + } else { + true + } + } + }; + let layer = tracing_tree::HierarchicalLayer::default() .with_writer(io::stderr) .with_indent_lines(true) .with_ansi(color_logs) .with_targets(true) + .with_verbose_exit(verbose_entry_exit) + .with_verbose_entry(verbose_entry_exit) .with_indent_amount(2); #[cfg(parallel_compiler)] let layer = layer.with_thread_ids(true).with_thread_names(true); From 145bb1f64b3d6e88065ad6af7bf04c82b8215a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Wed, 11 May 2022 12:26:06 +0300 Subject: [PATCH 4/4] :arrow_up: rust-analyzer --- src/tools/rust-analyzer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rust-analyzer b/src/tools/rust-analyzer index 5dce1ff0212e4..5d5bbec9b6001 160000 --- a/src/tools/rust-analyzer +++ b/src/tools/rust-analyzer @@ -1 +1 @@ -Subproject commit 5dce1ff0212e467271c9e895478670c74d847ee9 +Subproject commit 5d5bbec9b60010dd7389a084c56693baf6bda780