From 4116aaeb5fc90aa7088f3be608d08dc2a1f66583 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Mon, 4 Jan 2021 00:53:33 +0800 Subject: [PATCH] Update rustc.fish - [`-L`: add a directory to the library search path][1] - [`--crate-type`: a list of types of crates for the compiler to emit][2] - [`--emit`: specifies the types of output files to generate][3] [1]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#-l-add-a-directory-to-the-library-search-path [2]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#--crate-type-a-list-of-types-of-crates-for-the-compiler-to-emit [3]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#--emit-specifies-the-types-of-output-files-to-generate --- share/completions/rustc.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/completions/rustc.fish b/share/completions/rustc.fish index 4b2f1649a..0a905bcf6 100644 --- a/share/completions/rustc.fish +++ b/share/completions/rustc.fish @@ -1,11 +1,11 @@ complete -c rustc -s h -l help complete -c rustc -x -l cfg -complete -c rustc -r -s L -a 'dylib= static= framework=' +complete -c rustc -r -s L -a 'dependency= crate= native= framework= all=' complete -c rustc -x -s l -a 'dylib= static= framework=' -complete -c rustc -x -l crate-type -a 'bin lib rlib dylib staticlib' +complete -c rustc -x -l crate-type -a 'bin lib rlib dylib staticlib proc-macro' complete -c rustc -r -l crate-name -complete -c rustc -x -l emit -a 'asm llvm-bc llvm-ir obj link dep-info' +complete -c rustc -x -l emit -a 'asm llvm-bc llvm-ir obj link dep-info metadata mir' complete -c rustc -x -l print -a 'crate-name file-names sysroot' complete -c rustc -s g complete -c rustc -s O