diff options
| author | Martin Nordholts <martin.nordholts@codetale.se> | 2024-05-04 16:21:50 +0200 |
|---|---|---|
| committer | Martin Nordholts <martin.nordholts@codetale.se> | 2024-06-14 20:25:17 +0200 |
| commit | f5f067bf9d8de86f3a546a33d8a2e08dfa64cde1 (patch) | |
| tree | 9c7c9f66f146b8311ef5e2d6fe7bed62104f77e8 /compiler/rustc_session/src | |
| parent | 651ff643ae68438213bded335ef47cc9c50d3039 (diff) | |
| download | rust-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_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index fd4a3a9e6ce..2382412ee1a 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1485,7 +1485,8 @@ options! { incremental: Option<String> = (None, parse_opt_string, [UNTRACKED], "enable incremental compilation"), inline_threshold: Option<u32> = (None, parse_opt_number, [TRACKED], - "set the threshold for inlining a function"), + "this option is deprecated and does nothing \ + (consider using `-Cllvm-args=--inline-threshold=...`)"), #[rustc_lint_opt_deny_field_access("use `Session::instrument_coverage` instead of this field")] instrument_coverage: InstrumentCoverage = (InstrumentCoverage::No, parse_instrument_coverage, [TRACKED], "instrument the generated code to support LLVM source-based code coverage reports \ |
