Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 9 pull requests #119767

Merged
merged 26 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift click to select a range
bc6a5c7
std: getrandom simplification for freebsd.
devnexen Dec 8, 2023
2c088f9
Disallow reference to `static mut` for expressions
obeis Dec 22, 2023
70ba4d1
Disallow reference to `static mut` for statements
obeis Dec 22, 2023
a82fd2b
Call `maybe_expr_static_mut` inside `resolve_expr`
obeis Dec 22, 2023
e36f7b7
Call `maybe_stmt_static_mut` inside `resolve_stmt`
obeis Dec 22, 2023
18edf9a
Add test for `E0796` and `static_mut_ref` lint
obeis Dec 22, 2023
5617361
don't reexport atomic::ordering via rustc_data_structures, use std im…
klensy Jan 2, 2024
a8aa687
Update test for `E0796` and `static_mut_ref` lint
obeis Dec 22, 2023
4071572
Merge dead bb pruning and unreachable bb deduplication.
cjgillot Jan 7, 2024
e61be1b
rustdoc-search: reuse empty map/array in function signatures
notriddle Jan 8, 2024
8356802
Move promote_consts back to rustc_mir_transform.
cjgillot May 20, 2023
cae0dc2
Simplify code flow.
cjgillot May 20, 2023
5d6463c
Make match exhaustive.
cjgillot Jan 8, 2024
a2b765f
Remove `-Zdont-buffer-diagnostics`.
nnethercote Jan 7, 2024
c3cd657
rustdoc-search: intern function search types
notriddle Jan 8, 2024
c8ded52
GNU/Hurd: unconditionally use inline stack probes
erikdesjardins Jan 9, 2024
3611014
Rework and improve unstable documentation of check-cfg
Urgau Dec 22, 2023
4a24b5b
Rollup merge of #117556 - obeis:static-mut-ref-lint, r=davidtwco
GuillaumeGomez Jan 9, 2024
df2f4ae
Rollup merge of #118748 - devnexen:fbsd_getrandom_simpl, r=Nilstrieb,…
GuillaumeGomez Jan 9, 2024
5c9a8d7
Rollup merge of #119282 - Urgau:check-cfg-rework-unstable-doc, r=John…
GuillaumeGomez Jan 9, 2024
d3574be
Rollup merge of #119527 - klensy:ordering, r=compiler-errors
GuillaumeGomez Jan 9, 2024
72fdaf5
Rollup merge of #119668 - cjgillot:transform-promote, r=oli-obk
GuillaumeGomez Jan 9, 2024
9b90541
Rollup merge of #119699 - cjgillot:simplify-unreachable, r=oli-obk
GuillaumeGomez Jan 9, 2024
b0aa3d8
Rollup merge of #119723 - nnethercote:rm-Zdont-buffer-diagnostics, r=…
GuillaumeGomez Jan 9, 2024
f9cadb9
Rollup merge of #119756 - notriddle:notriddle/reuse-map, r=GuillaumeG…
GuillaumeGomez Jan 9, 2024
f41d773
Rollup merge of #119758 - erikdesjardins:hurd, r=petrochenkov
GuillaumeGomez Jan 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions compiler/rustc_errors/src/diagnostic_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 266,7 @@ impl<'a, G: EmissionGuarantee> DiagnosticBuilder<'a, G> {
/// Converts the builder to a `Diagnostic` for later emission,
/// unless dcx has disabled such buffering.
pub fn into_diagnostic(mut self) -> Option<(Diagnostic, &'a DiagCtxt)> {
let flags = self.dcx.inner.lock().flags;
if flags.dont_buffer_diagnostics || flags.treat_err_as_bug.is_some() {
if self.dcx.inner.lock().flags.treat_err_as_bug.is_some() {
self.emit();
return None;
}
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 524,6 @@ pub struct DiagCtxtFlags {
/// If Some, the Nth error-level diagnostic is upgraded to bug-level.
/// (rustc: see `-Z treat-err-as-bug`)
pub treat_err_as_bug: Option<NonZeroUsize>,
/// If true, immediately emit diagnostics that would otherwise be buffered.
/// (rustc: see `-Z dont-buffer-diagnostics` and `-Z treat-err-as-bug`)
pub dont_buffer_diagnostics: bool,
/// Show macro backtraces.
/// (rustc: see `-Z macro-backtrace`)
pub macro_backtrace: bool,
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_interface/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 659,6 @@ fn test_unstable_options_tracking_hash() {
// tidy-alphabetical-start
untracked!(assert_incr_state, Some(String::from("loaded")));
untracked!(deduplicate_diagnostics, false);
untracked!(dont_buffer_diagnostics, true);
untracked!(dump_dep_graph, true);
untracked!(dump_mir, Some(String::from("abc")));
untracked!(dump_mir_dataflow, true);
Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_session/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 1146,6 @@ impl UnstableOptions {
DiagCtxtFlags {
can_emit_warnings,
treat_err_as_bug: self.treat_err_as_bug,
dont_buffer_diagnostics: self.dont_buffer_diagnostics,
macro_backtrace: self.macro_backtrace,
deduplicate_diagnostics: self.deduplicate_diagnostics,
track_diagnostics: self.track_diagnostics,
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,9 1553,6 @@ options! {
dep_info_omit_d_target: bool = (false, parse_bool, [TRACKED],
"in dep-info output, omit targets for tracking dependencies of the dep-info files \
themselves (default: no)"),
dont_buffer_diagnostics: bool = (false, parse_bool, [UNTRACKED],
"emit diagnostics rather than buffering (breaks NLL error downgrading, sorting) \
(default: no)"),
dual_proc_macros: bool = (false, parse_bool, [TRACKED],
"load proc macros for both target and host, but only link to the target (default: no)"),
dump_dep_graph: bool = (false, parse_bool, [UNTRACKED],
Expand Down