Skip to content

Commit 080174e

Browse files
committed
inline_threshold deprecated and do nothing: make in untracked
1 parent 5334b5a commit 080174e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_interface/src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ fn test_codegen_options_tracking_hash() {
582582
untracked!(dlltool, Some(PathBuf::from("custom_dlltool.exe")));
583583
untracked!(extra_filename, String::from("extra-filename"));
584584
untracked!(incremental, Some(String::from("abc")));
585+
untracked!(inline_threshold, Some(0xf007ba11));
585586
// `link_arg` is omitted because it just forwards to `link_args`.
586587
untracked!(link_args, vec![String::from("abc"), String::from("def")]);
587588
untracked!(link_self_contained, LinkSelfContained::on());
@@ -613,7 +614,6 @@ fn test_codegen_options_tracking_hash() {
613614
tracked!(embed_bitcode, false);
614615
tracked!(force_frame_pointers, FramePointer::Always);
615616
tracked!(force_unwind_tables, Some(true));
616-
tracked!(inline_threshold, Some(0xf007ba11));
617617
tracked!(instrument_coverage, InstrumentCoverage::Yes);
618618
tracked!(link_dead_code, Some(true));
619619
tracked!(linker_plugin_lto, LinkerPluginLto::LinkerPluginAuto);

compiler/rustc_session/src/options.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ options! {
15861586
incremental: Option<String> = (None, parse_opt_string, [UNTRACKED],
15871587
"enable incremental compilation"),
15881588
#[rustc_lint_opt_deny_field_access("documented to do nothing")]
1589-
inline_threshold: Option<u32> = (None, parse_opt_number, [TRACKED],
1589+
inline_threshold: Option<u32> = (None, parse_opt_number, [UNTRACKED],
15901590
"this option is deprecated and does nothing \
15911591
(consider using `-Cllvm-args=--inline-threshold=...`)",
15921592
deprecated_do_nothing: true),

0 commit comments

Comments
 (0)