diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 686ee5d1237..d854b015658 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -713,7 +713,11 @@ pub fn handle_code_lens( label: Default::default(), bin: "cargo".into(), args, - env: Default::default(), + env: { + let mut m = FxHashMap::default(); + m.insert("RUST_BACKTRACE".to_string(), "short".to_string()); + m + }, cwd: workspace_root.map(|root| root.to_string_lossy().to_string()), };