diff options
| author | bors <bors@rust-lang.org> | 2024-02-05 06:24:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-05 06:24:06 +0000 |
| commit | 8c0b4f67c9b4bf477df38c16669fd576d46a2b3d (patch) | |
| tree | 57bed4a46e9cf16df0c9b240293a24d907b4c22c /compiler/rustc_errors/src | |
| parent | 0984becf01112cbd3583c796541760b65340c8db (diff) | |
| parent | a2d3eed58dfedd7b9e3870c88efa1208e4994f40 (diff) | |
| download | rust-8c0b4f67c9b4bf477df38c16669fd576d46a2b3d.tar.gz rust-8c0b4f67c9b4bf477df38c16669fd576d46a2b3d.zip | |
Auto merge of #120660 - matthiaskrgr:rollup-zuqljul, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #119481 (Clarify ambiguity in select_nth_unstable docs) - #119600 (Remove outdated references to librustc_middle) - #120458 (Document `&CStr` to `CString` conversion) - #120569 (coverage: Improve handling of function/closure spans) - #120572 (Update libc to 0.2.153) - #120587 (miri: normalize struct tail in ABI compat check) - #120607 (fix #120603 by adding a check in default_read_buf) - #120636 (Subtree update of `rust-analyzer`) - #120641 (rustdoc: trait.impl, type.impl: sort impls to make it not depend on serialization order) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index b2bd4d8eb95..9ec636dcc9c 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -645,7 +645,8 @@ impl DiagCtxt { } // This is here to not allow mutation of flags; - // as of this writing it's only used in tests in librustc_middle. + // as of this writing it's used in Session::consider_optimizing and + // in tests in rustc_interface. pub fn can_emit_warnings(&self) -> bool { self.inner.borrow_mut().flags.can_emit_warnings } |
