diff options
| author | Jeremy Fitzhardinge <jeremy@goop.org> | 2023-09-09 12:00:22 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2024-04-14 14:20:55 -0700 |
| commit | fdcb8a9feaa37a4fbea331d0808d15ad19e81be4 (patch) | |
| tree | c14fed099f6fd39967562d0f7ad3f30ab2823d18 /compiler/rustc_session/src | |
| parent | 29b120740b55aaf2f75e659ba34c4e30977e5fed (diff) | |
| download | rust-fdcb8a9feaa37a4fbea331d0808d15ad19e81be4.tar.gz rust-fdcb8a9feaa37a4fbea331d0808d15ad19e81be4.zip | |
Stabilize --json unused-externs(-silent)
Implement https://github.com/rust-lang/compiler-team/issues/674
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 34acb4ea10f..7aca86f7169 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -2317,13 +2317,6 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M check_error_format_stability(early_dcx, &unstable_opts, error_format); - if !unstable_opts.unstable_options && json_unused_externs.is_enabled() { - early_dcx.early_fatal( - "the `-Z unstable-options` flag must also be passed to enable \ - the flag `--json=unused-externs`", - ); - } - let output_types = parse_output_types(early_dcx, &unstable_opts, matches); let mut cg = CodegenOptions::build(early_dcx, matches); |
