You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto merge of #15589 : Denommus/rust/master, r=alexcrichton
I have noticed some errors and some absences that I considered essential to the usability of rustc in zsh, so I included them and updated some of the man page.
Copy file name to clipboardExpand all lines: src/etc/zsh/_rust
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,12 @@ _rustc_opts_switches=(
9
9
-c'[Compile and assemble, but do not link]'
10
10
--cfg'[Configure the compilation environment]'
11
11
--crate-id'[Output the crate id and exit]'
12
-
--crate-file-name'[Output the file(s) that would be written if compilation continued and exit]'
13
-
--crate-name'[Output the crate name and exit]'
14
-
--dep-info'[Output dependency info to <filename> after compiling]'
12
+
--crate-file-name'[deprecated in favor of --print-file-name]'
13
+
--crate-name'[Specify the name of the crate being built]'
15
14
--crate-type'[Specify the type of crate to crate]'
15
+
--debuginfo'[Emit DWARF debug info to the objects created: 0 = no debug info, 1 = line-tables only (for stacktraces and breakpoints), 2 = full debug info with variable and type information (same as -g)]'
16
+
--dep-info'[Output dependency info to <filename> after compiling]'
17
+
-g'[Equivalent to --debuginfo=2]'
16
18
{-h,--help}'[Display this message]'
17
19
-L'[Add a directory to the library search path]'
18
20
--linker'[Program to use for linking instead of the default.]'
@@ -29,6 +31,8 @@ _rustc_opts_switches=(
29
31
--parse-only'[Parse only; do not compile, assemble, or link]'
30
32
--passes'[Comma or space separated list of pass names to use]'
31
33
--pretty'[Pretty-print the input instead of compiling]'
34
+
--print-crate-name'[Output the crate name and exit]'
35
+
--print-file-name'[Output the file(s) that would be written if compilation continued and exit]'
32
36
--save-temps'[Write intermediate files (.bc, .opt.bc, .o) in addition to normal output]'
0 commit comments