Add -Zfunction-return={keep,thunk-extern} option · rust-lang/rust@2d47622 (original) (raw)

`@@ -5,10 +5,11 @@ use rustc_errors::{emitter::HumanReadableErrorType, registry, ColorConfig};

`

5

5

`use rustc_session::config::{

`

6

6

` build_configuration, build_session_options, rustc_optgroups, BranchProtection, CFGuard, Cfg,

`

7

7

`DebugInfo, DumpMonoStatsFormat, ErrorOutputType, ExternEntry, ExternLocation, Externs,

`

8

``

`-

InliningThreshold, Input, InstrumentCoverage, InstrumentXRay, LinkSelfContained,

`

9

``

`-

LinkerPluginLto, LocationDetail, LtoCli, MirSpanview, OomStrategy, Options, OutFileName,

`

10

``

`-

OutputType, OutputTypes, PAuthKey, PacRet, Passes, Polonius, ProcMacroExecutionStrategy, Strip,

`

11

``

`-

SwitchWithOptPath, SymbolManglingVersion, TraitSolver, WasiExecModel,

`

``

8

`+

FunctionReturn, InliningThreshold, Input, InstrumentCoverage, InstrumentXRay,

`

``

9

`+

LinkSelfContained, LinkerPluginLto, LocationDetail, LtoCli, MirSpanview, OomStrategy, Options,

`

``

10

`+

OutFileName, OutputType, OutputTypes, PAuthKey, PacRet, Passes, Polonius,

`

``

11

`+

ProcMacroExecutionStrategy, Strip, SwitchWithOptPath, SymbolManglingVersion, TraitSolver,

`

``

12

`+

WasiExecModel,

`

12

13

`};

`

13

14

`use rustc_session::lint::Level;

`

14

15

`use rustc_session::search_paths::SearchPath;

`

`@@ -758,6 +759,7 @@ fn test_unstable_options_tracking_hash() {

`

758

759

`tracked!(flatten_format_args, false);

`

759

760

`tracked!(force_unstable_if_unmarked, true);

`

760

761

`tracked!(fuel, Some(("abc".to_string(), 99)));

`

``

762

`+

tracked!(function_return, FunctionReturn::ThunkExtern);

`

761

763

`tracked!(function_sections, Some(false));

`

762

764

`tracked!(human_readable_cgu_names, true);

`

763

765

`tracked!(incremental_ignore_spans, true);

`