This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 2661a4e
committed
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.1 parent a53fb30 commit 2661a4e
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2045 | 2049 | | |
2046 | 2050 | | |
2047 | 2051 | | |
| |||
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
2055 | | - | |
| 2059 | + | |
2056 | 2060 | | |
2057 | | - | |
| 2061 | + | |
2058 | 2062 | | |
2059 | 2063 | | |
2060 | 2064 | | |
2061 | | - | |
2062 | 2065 | | |
2063 | 2066 | | |
2064 | 2067 | | |
| |||
0 commit comments