]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/z-help.stdout
4f07fca82d1ebfb860461506cf7ba25986b0d7a2
[rust.git] / tests / rustdoc-ui / z-help.stdout
1     -Z                          allow-features=val -- only allow the listed language features to be enabled in code (comma separated)
2     -Z                       always-encode-mir=val -- encode MIR of all functions into the crate metadata (default: no)
3     -Z                            asm-comments=val -- generate comments into the assembly (may change behavior) (default: no)
4     -Z                       assert-incr-state=val -- assert that the incremental cache is in given state: either `loaded` or `not-loaded`.
5     -Z               assume-incomplete-release=val -- make cfg(version) treat the current version as incomplete (default: no)
6     -Z                      binary-dep-depinfo=val -- include artifacts (sysroot, crate dependencies) used during compilation in dep-info (default: no)
7     -Z                             box-noalias=val -- emit noalias metadata for box (default: yes)
8     -Z                       branch-protection=val -- set options for branch target identification and pointer authentication on AArch64
9     -Z                           cf-protection=val -- instrument control-flow architecture protection
10     -Z               cgu-partitioning-strategy=val -- the codegen unit partitioning strategy to use
11     -Z                         codegen-backend=val -- the backend to use
12     -Z                             combine-cgu=val -- combine CGUs into a single one
13     -Z                              crate-attr=val -- inject the given attribute in the crate
14     -Z                debug-info-for-profiling=val -- emit discriminators and other data necessary for AutoFDO
15     -Z                            debug-macros=val -- emit line numbers debug info inside macros (default: no)
16     -Z                 deduplicate-diagnostics=val -- deduplicate identical diagnostics (default: yes)
17     -Z                  dep-info-omit-d-target=val -- in dep-info output, omit targets for tracking dependencies of the dep-info files themselves (default: no)
18     -Z                               dep-tasks=val -- print tasks that execute and the color their dep node gets (requires debug build) (default: no)
19     -Z                        diagnostic-width=val -- set the current output width for diagnostic truncation
20     -Z                                 dlltool=val -- import library generation tool (windows-gnu only)
21     -Z                 dont-buffer-diagnostics=val -- emit diagnostics rather than buffering (breaks NLL error downgrading, sorting) (default: no)
22     -Z                           drop-tracking=val -- enables drop tracking in generators (default: no)
23     -Z                       drop-tracking-mir=val -- enables drop tracking on MIR in generators (default: no)
24     -Z                        dual-proc-macros=val -- load proc macros for both target and host, but only link to the target (default: no)
25     -Z                          dump-dep-graph=val -- dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv) (default: no)
26     -Z                  dump-drop-tracking-cfg=val -- dump drop-tracking control-flow graph as a `.dot` file (default: no)
27     -Z                                dump-mir=val -- dump MIR state to file.
28         `val` is used to select which passes and functions to dump. For example:
29         `all` matches all passes and functions,
30         `foo` matches all passes for functions whose name contains 'foo',
31         `foo & ConstProp` only the 'ConstProp' pass for function names containing 'foo',
32         `foo | bar` all passes for function names containing 'foo' or 'bar'.
33     -Z                       dump-mir-dataflow=val -- in addition to `.mir` files, create graphviz `.dot` files with dataflow results (default: no)
34     -Z                            dump-mir-dir=val -- the directory the MIR is dumped into (default: `mir_dump`)
35     -Z            dump-mir-exclude-pass-number=val -- exclude the pass number when dumping MIR (used in tests) (default: no)
36     -Z                       dump-mir-graphviz=val -- in addition to `.mir` files, create graphviz `.dot` files (and with `-Z instrument-coverage`, also create a `.dot` file for the MIR-derived coverage graph) (default: no)
37     -Z                       dump-mir-spanview=val -- in addition to `.mir` files, create `.html` files to view spans for all `statement`s (including terminators), only `terminator` spans, or computed `block` spans (one span encompassing a block's terminator and all statements). If `-Z instrument-coverage` is also enabled, create an additional `.html` file showing the computed coverage spans.
38     -Z                         dump-mono-stats=val -- output statistics about monomorphization collection
39     -Z                  dump-mono-stats-format=val -- the format to use for -Z dump-mono-stats (`markdown` (default) or `json`)
40     -Z                           dwarf-version=val -- version of DWARF debug information to emit (default: 2 or 4, depending on platform)
41     -Z                               dylib-lto=val -- enables LTO for dylib crate type
42     -Z                        emit-stack-sizes=val -- emit a section containing stack size metadata (default: no)
43     -Z                           emit-thin-lto=val -- emit the bc module with thin LTO info (default: yes)
44     -Z               export-executable-symbols=val -- export symbols from executables, as if they were dynamic libraries
45     -Z                   extra-const-ub-checks=val -- turns on more checks to detect const UB, which can be slow (default: no)
46     -Z                             fewer-names=val -- reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR) (default: no)
47     -Z              force-unstable-if-unmarked=val -- force all crates to be `rustc_private` unstable (default: no)
48     -Z                                    fuel=val -- set the optimization fuel quota for a crate
49     -Z                       function-sections=val -- whether each function should go in its own section
50     -Z                    future-incompat-test=val -- forces all lints to be future incompatible, used for internal testing (default: no)
51     -Z                                  gcc-ld=val -- implementation of ld used by cc
52     -Z                      graphviz-dark-mode=val -- use dark-themed colors in graphviz output (default: no)
53     -Z                           graphviz-font=val -- use the given `fontname` in graphviz output; can be overridden by setting environment variable `RUSTC_GRAPHVIZ_FONT` (default: `Courier, monospace`)
54     -Z                               hir-stats=val -- print some statistics about AST and HIR (default: no)
55     -Z                human-readable-cgu-names=val -- generate human-readable, predictable names for codegen units (default: no)
56     -Z                        identify-regions=val -- display unnamed regions as `'<id>`, using a non-ident unique id (default: no)
57     -Z                incremental-ignore-spans=val -- ignore spans during ICH computation -- used for testing (default: no)
58     -Z                        incremental-info=val -- print high-level information about incremental reuse (or the lack thereof) (default: no)
59     -Z              incremental-relative-spans=val -- hash spans relative to their parent item for incr. comp. (default: no)
60     -Z                  incremental-verify-ich=val -- verify incr. comp. hashes of green query instances (default: no)
61     -Z                      inline-in-all-cgus=val -- control whether `#[inline]` functions are in all CGUs
62     -Z                             inline-llvm=val -- enable LLVM inlining (default: yes)
63     -Z                              inline-mir=val -- enable MIR inlining (default: no)
64     -Z               inline-mir-hint-threshold=val -- inlining threshold for functions with inline hint (default: 100)
65     -Z                    inline-mir-threshold=val -- a default MIR inlining threshold (default: 50)
66     -Z                             input-stats=val -- gather statistics about the input (default: no)
67     -Z                     instrument-coverage=val -- instrument the generated code to support LLVM source-based code coverage reports (note, the compiler build config must include `profiler = true`); implies `-C symbol-mangling-version=v0`. Optional values are:
68         `=all` (implicit value)
69         `=except-unused-generics`
70         `=except-unused-functions`
71         `=off` (default)
72     -Z                       instrument-mcount=val -- insert function instrument code for mcount-based tracing (default: no)
73     -Z                       keep-hygiene-data=val -- keep hygiene data after analysis (default: no)
74     -Z                             layout-seed=val -- seed layout randomization
75     -Z                   link-native-libraries=val -- link native libraries in the linker invocation (default: yes)
76     -Z                               link-only=val -- link the `.rlink` file generated by `-Z no-link` (default: no)
77     -Z                            llvm-plugins=val -- a list LLVM plugins to enable (space separated)
78     -Z                         llvm-time-trace=val -- generate JSON tracing data file from LLVM data (default: no)
79     -Z                         location-detail=val -- what location details should be tracked when using caller_location, either `none`, or a comma separated list of location details, for which valid options are `file`, `line`, and `column` (default: `file,line,column`)
80     -Z                           log-backtrace=val -- add a backtrace along with logging
81     -Z                                      ls=val -- list the symbols defined by a library crate (default: no)
82     -Z                         macro-backtrace=val -- show macro backtraces (default: no)
83     -Z             maximal-hir-to-mir-coverage=val -- save as much information as possible about the correspondence between MIR and HIR as source scopes (default: no)
84     -Z                         merge-functions=val -- control the operation of the MergeFunctions LLVM pass, taking the same values as the target option of the same name
85     -Z                              meta-stats=val -- gather metadata statistics (default: no)
86     -Z                          mir-emit-retag=val -- emit Retagging MIR statements, interpreted e.g., by miri; implies -Zmir-opt-level=0 (default: no)
87     -Z                       mir-enable-passes=val -- use like `-Zmir-enable-passes=+DestProp,-InstCombine`. Forces the specified passes to be enabled, overriding all other checks. Passes that are not specified are enabled or disabled by other flags as usual.
88     -Z                           mir-opt-level=val -- MIR optimization level (0-4; default: 1 in non optimized builds and 2 in optimized builds)
89     -Z        mir-pretty-relative-line-numbers=val -- use line numbers relative to the function in mir pretty printing
90     -Z                         move-size-limit=val -- the size at which the `large_assignments` lint starts to be emitted
91     -Z                         mutable-noalias=val -- emit noalias metadata for mutable references (default: yes)
92     -Z                               nll-facts=val -- dump facts from NLL analysis into side files (default: no)
93     -Z                           nll-facts-dir=val -- the directory the NLL facts are dumped into (default: `nll-facts`)
94     -Z                             no-analysis=val -- parse and expand the source, but run no analysis
95     -Z                              no-codegen=val -- run all passes except codegen; no output
96     -Z              no-generate-arange-section=val -- omit DWARF address ranges that give faster lookups
97     -Z                          no-jump-tables=val -- disable the jump tables and lookup tables that can be generated from a switch case lowering
98     -Z                           no-leak-check=val -- disable the 'leak check' for subtyping; unsound, but useful for tests
99     -Z                                 no-link=val -- compile without linking
100     -Z                        no-parallel-llvm=val -- run LLVM in non-parallel mode (while keeping codegen-units and ThinLTO)
101     -Z                     no-profiler-runtime=val -- prevent automatic injection of the profiler_builtins crate
102     -Z                 no-unique-section-names=val -- do not use unique names for text and data sections when -Z function-sections is used
103     -Z                          normalize-docs=val -- normalize associated items in rustdoc when generating documentation
104     -Z                                     oom=val -- panic strategy for out-of-memory handling
105     -Z                  osx-rpath-install-name=val -- pass `-install_name @rpath/...` to the macOS linker (default: no)
106     -Z                     packed-bundled-libs=val -- change rlib format to store native libraries as archives
107     -Z                       panic-abort-tests=val -- support compiling tests with panic=abort (default: no)
108     -Z                           panic-in-drop=val -- panic strategy for panics in drops
109     -Z                              parse-only=val -- parse only; do not compile, assemble, or link (default: no)
110     -Z                              perf-stats=val -- print some performance-related statistics (default: no)
111     -Z pick-stable-methods-before-any-unstable=val -- try to pick stable methods first before picking any unstable methods (default: yes)
112     -Z                                     plt=val -- whether to use the PLT when calling into shared libraries;
113         only has effect for PIC code on systems with ELF binaries
114         (default: PLT is disabled if full relro is enabled)
115     -Z                                polonius=val -- enable polonius-based borrow-checker (default: no)
116     -Z                            polymorphize=val -- perform polymorphization analysis
117     -Z                            pre-link-arg=val -- a single extra argument to prepend the linker invocation (can be used several times)
118     -Z                           pre-link-args=val -- extra arguments to prepend to the linker invocation (space separated)
119     -Z           precise-enum-drop-elaboration=val -- use a more precise version of drop elaboration for matches on enums (default: yes). This results in better codegen, but has caused miscompilations on some tier 2 platforms. See #77382 and #74551.
120     -Z                              print-fuel=val -- make rustc print the total optimization fuel used by a crate
121     -Z                       print-llvm-passes=val -- print the LLVM optimization passes being run (default: no)
122     -Z                        print-mono-items=val -- print the result of the monomorphization collection pass
123     -Z                        print-type-sizes=val -- print layout information for each type encountered (default: no)
124     -Z                    proc-macro-backtrace=val -- show backtraces for panics during proc-macro execution (default: no)
125     -Z           proc-macro-execution-strategy=val -- how to run proc-macro code (default: same-thread)
126     -Z                                 profile=val -- insert profiling code (default: no)
127     -Z                        profile-closures=val -- profile size of closures
128     -Z                            profile-emit=val -- file path to emit profiling data at runtime when using 'profile' (default based on relative source path)
129     -Z                      profile-sample-use=val -- use the given `.prof` file for sampled profile-guided optimization (also known as AutoFDO)
130     -Z                        profiler-runtime=val -- name of the profiler runtime crate to automatically inject (default: `profiler_builtins`)
131     -Z                         query-dep-graph=val -- enable queries of the dependency graph for regression testing (default: no)
132     -Z                        randomize-layout=val -- randomize the layout of types (default: no)
133     -Z                   relax-elf-relocations=val -- whether ELF relocations can be relaxed
134     -Z                             relro-level=val -- choose which RELRO level to use
135     -Z                        remap-cwd-prefix=val -- remap paths under the current working directory to this path prefix
136     -Z                     report-delayed-bugs=val -- immediately print bugs registered with `delay_span_bug` (default: no)
137     -Z                               sanitizer=val -- use a sanitizer
138     -Z          sanitizer-memory-track-origins=val -- enable origins tracking in MemorySanitizer
139     -Z                       sanitizer-recover=val -- enable recovery for selected sanitizers
140     -Z                  saturating-float-casts=val -- make float->int casts UB-free: numbers outside the integer type's range are clipped to the max/min integer respectively, and NaN is mapped to 0 (default: yes)
141     -Z                           save-analysis=val -- write syntax and type analysis (in JSON format) information, in addition to normal output (default: no)
142     -Z                            self-profile=val -- run the self profiler and output the raw event data
143     -Z                    self-profile-counter=val -- counter used by the self profiler (default: `wall-time`), one of:
144         `wall-time` (monotonic clock, i.e. `std::time::Instant`)
145         `instructions:u` (retired instructions, userspace-only)
146         `instructions-minus-irqs:u` (subtracting hardware interrupt counts for extra accuracy)
147     -Z                     self-profile-events=val -- specify the events recorded by the self profiler;
148         for example: `-Z self-profile-events=default,query-keys`
149         all options: none, all, default, generic-activity, query-provider, query-cache-hit
150                      query-blocked, incr-cache-load, incr-result-hashing, query-keys, function-args, args, llvm, artifact-sizes
151     -Z                          share-generics=val -- make the current crate share its generic instantiations
152     -Z                               show-span=val -- show spans for compiler debugging (expr|pat|ty)
153     -Z         simulate-remapped-rust-src-base=val -- simulate the effect of remap-debuginfo = true at bootstrapping by remapping path to rust's source base directory. only meant for testing purposes
154     -Z                              span-debug=val -- forward proc_macro::Span's `Debug` impl to `Span`
155     -Z                       span-free-formats=val -- exclude spans when debug-printing compiler state (default: no)
156     -Z                    split-dwarf-inlining=val -- provide minimal debug info in the object/executable to facilitate online symbolication/stack traces in the absence of .dwo/.dwp files when using Split DWARF
157     -Z                        split-dwarf-kind=val -- split dwarf variant (only if -Csplit-debuginfo is enabled and on relevant platform)
158         (default: `split`)
159
160         `split`: sections which do not require relocation are written into a DWARF object (`.dwo`)
161                  file which is ignored by the linker
162         `single`: sections which do not require relocation are written into object file but ignored
163                   by the linker
164     -Z                      src-hash-algorithm=val -- hash algorithm of source files in debug info (`md5`, `sha1`, or `sha256`)
165     -Z                         stack-protector=val -- control stack smash protection strategy (`rustc --print stack-protector-strategies` for details)
166     -Z                      strict-init-checks=val -- control if mem::uninitialized and mem::zeroed panic on more UB
167     -Z                                   strip=val -- tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)
168     -Z                 symbol-mangling-version=val -- which mangling version to use for symbol names ('legacy' (default) or 'v0')
169     -Z                                   teach=val -- show extended diagnostic help (default: no)
170     -Z                               temps-dir=val -- the directory the intermediate files are written to
171     -Z                                 thinlto=val -- enable ThinLTO when possible
172     -Z                           thir-unsafeck=val -- use the THIR unsafety checker (default: no)
173     -Z                                 threads=val -- use a thread pool with N threads
174     -Z                        time-llvm-passes=val -- measure time of each LLVM pass (default: no)
175     -Z                             time-passes=val -- measure time of each rustc pass (default: no)
176     -Z                   tiny-const-eval-limit=val -- sets a tiny, non-configurable limit for const eval; useful for compiler tests
177     -Z                               tls-model=val -- choose the TLS model to use (`rustc --print tls-models` for details)
178     -Z                            trace-macros=val -- for every macro invocation, print its name and arguments (default: no)
179     -Z                       track-diagnostics=val -- tracks where in rustc a diagnostic was emitted
180     -Z                            trait-solver=val -- specify the trait solver mode used by rustc (default: classic)
181     -Z                translate-additional-ftl=val -- additional fluent translation to preferentially use (for testing translation)
182     -Z        translate-directionality-markers=val -- emit directionality isolation markers in translated diagnostics
183     -Z                          translate-lang=val -- language identifier for diagnostic output
184     -Z   translate-remapped-path-to-local-path=val -- translate remapped paths into local paths when possible (default: yes)
185     -Z                        trap-unreachable=val -- generate trap instructions for unreachable intrinsics (default: use target setting, usually yes)
186     -Z                        treat-err-as-bug=val -- treat error number `val` that occurs as bug
187     -Z                   trim-diagnostic-paths=val -- in diagnostics, use heuristics to shorten paths referring to items
188     -Z                                tune-cpu=val -- select processor to schedule for (`rustc --print target-cpus` for details)
189     -Z                              ui-testing=val -- emit compiler diagnostics in a form suitable for UI testing (default: no)
190     -Z            uninit-const-chunk-threshold=val -- allow generating const initializers with mixed init/uninit chunks, and set the maximum number of chunks for which this is allowed (default: 16)
191     -Z          unleash-the-miri-inside-of-you=val -- take the brakes off const evaluation. NOTE: this is unsound (default: no)
192     -Z                                unpretty=val -- present the input source, unstable (and less-pretty) variants;
193         `normal`, `identified`,
194         `expanded`, `expanded,identified`,
195         `expanded,hygiene` (with internal representations),
196         `ast-tree` (raw AST before expansion),
197         `ast-tree,expanded` (raw AST after expansion),
198         `hir` (the HIR), `hir,identified`,
199         `hir,typed` (HIR with types for each node),
200         `hir-tree` (dump the raw HIR),
201         `mir` (the MIR), or `mir-cfg` (graphviz formatted MIR)
202     -Z                        unsound-mir-opts=val -- enable unsound and buggy MIR optimizations (default: no)
203     -Z                        unstable-options=val -- adds unstable command line options to rustc interface (default: no)
204     -Z                       use-ctors-section=val -- use legacy .ctors section for initializers rather than .init_array
205     -Z                            validate-mir=val -- validate MIR after each transformation
206     -Z                                 verbose=val -- in general, enable more debug printouts (default: no)
207     -Z                          verify-llvm-ir=val -- verify LLVM IR (default: no)
208     -Z            virtual-function-elimination=val -- enables dead virtual function elimination optimization. Requires `-Clto[=[fat,yes]]`
209     -Z                         wasi-exec-model=val -- whether to build a wasi command or reactor