diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-24 15:51:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-24 15:51:00 -0400 |
| commit | faa28be2f14b94148a19e1d4023b0a18f9b4d16a (patch) | |
| tree | 76aa83064c5e99619134e6beca07b245c1a9b9ad /compiler/rustc_driver_impl | |
| parent | 00e5f5886af17fe690a685290381531f840c5edc (diff) | |
| parent | f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1 (diff) | |
| download | rust-faa28be2f14b94148a19e1d4023b0a18f9b4d16a.tar.gz rust-faa28be2f14b94148a19e1d4023b0a18f9b4d16a.zip | |
Rollup merge of #124712 - Enselic:deprecate-inline-threshold, r=pnkfelix
Deprecate no-op codegen option `-Cinline-threshold=...` This deprecates `-Cinline-threshold` since using it has no effect. This has been the case since the new LLVM pass manager started being used, more than 2 years ago. Recommend using `-Cllvm-args=--inline-threshold=...` instead. Closes #89742 which is E-help-wanted.
Diffstat (limited to 'compiler/rustc_driver_impl')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 5ffa3a6099c..f8c68791564 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -1133,7 +1133,11 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) -> } if cg_flags.iter().any(|x| *x == "no-stack-check") { - early_dcx.early_warn("the --no-stack-check flag is deprecated and does nothing"); + early_dcx.early_warn("the `-Cno-stack-check` flag is deprecated and does nothing"); + } + + if cg_flags.iter().any(|x| x.starts_with("inline-threshold")) { + early_dcx.early_warn("the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)"); } if cg_flags.iter().any(|x| *x == "passes=list") { |
