about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-01-13 19:16:41 +0100
committerGitHub <noreply@github.com>2023-01-13 19:16:41 +0100
commit96bb02f35c4f8bef4090185bdbb8f5bc4a898e44 (patch)
tree37e51c7a4e0c41b3f9147f252aa90435a1b89835 /compiler/rustc_interface/src
parent0b90256ada21c6a81b4c18f2c7a23151ab5fc232 (diff)
parent4e2a3567bc14ad7b7e9d28f31fc1a468976ebc81 (diff)
downloadrust-96bb02f35c4f8bef4090185bdbb8f5bc4a898e44.tar.gz
rust-96bb02f35c4f8bef4090185bdbb8f5bc4a898e44.zip
Rollup merge of #104645 - yukiomoto:log-backtrace-option, r=oli-obk
Add log-backtrace option to show backtraces along with logging

according to #90698, I added a compiler option, `-Zlog-backtrace=filter`, where `filter` is a module name, to show backtraces for logging without rebuilding.

resolve #90698
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs
index a3b9891ee64..07b28cc86ce 100644
--- a/compiler/rustc_interface/src/tests.rs
+++ b/compiler/rustc_interface/src/tests.rs
@@ -748,6 +748,7 @@ fn test_unstable_options_tracking_hash() {
     tracked!(link_only, true);
     tracked!(llvm_plugins, vec![String::from("plugin_name")]);
     tracked!(location_detail, LocationDetail { file: true, line: false, column: false });
+    tracked!(log_backtrace, Some("filter".to_string()));
     tracked!(maximal_hir_to_mir_coverage, true);
     tracked!(merge_functions, Some(MergeFunctions::Disabled));
     tracked!(mir_emit_retag, true);