about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2024-05-04 16:21:50 +0200
committerMartin Nordholts <martin.nordholts@codetale.se>2024-06-14 20:25:17 +0200
commitf5f067bf9d8de86f3a546a33d8a2e08dfa64cde1 (patch)
tree9c7c9f66f146b8311ef5e2d6fe7bed62104f77e8 /compiler/rustc_driver_impl/src
parent651ff643ae68438213bded335ef47cc9c50d3039 (diff)
downloadrust-f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1.tar.gz
rust-f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1.zip
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index f7828b033bb..c51244a2c78 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -1136,6 +1136,10 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) ->
         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") {
         let backend_name = debug_flags.iter().find_map(|x| x.strip_prefix("codegen-backend="));