about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-29 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-10-29 18:09:53 +0100
commit2661a4edb90773b22bab3af31fa12a25963c1b01 (patch)
tree806082f747f7874d319772d0bfb808903297152a /compiler/rustc_codegen_llvm/src
parenta53fb30e3bf2655b0563da6d561c23cda5f3ec11 (diff)
downloadrust-2661a4edb90773b22bab3af31fa12a25963c1b01.tar.gz
rust-2661a4edb90773b22bab3af31fa12a25963c1b01.zip
Avoid BorrowMutError with RUSTC_LOG=debug
$ touch empty.rs
$ env RUSTC_LOG=debug rustc +stage1 --crate-type=lib empty.rs

Fails with a `BorrowMutError` because source map files are already
borrowed while `features_query` attempts to format a log message
containing a span.

Release the borrow before the query to avoid the issue.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions