Apply suggestions from code review
Co-authored-by: Chris Simpkins <git.simpkins@gmail.com> Co-authored-by: Who? Me?! <mark-i-m@users.noreply.github.com>
This commit is contained in:
parent
8f7abbdf41
commit
3d077bb26e
|
|
@ -13,14 +13,14 @@ flags should be documented there. Unstable flags should be documented in the
|
||||||
such as `-C embed-bitcode=no`.
|
such as `-C embed-bitcode=no`.
|
||||||
- Consider the behavior if the flag is passed multiple times. In some
|
- Consider the behavior if the flag is passed multiple times. In some
|
||||||
situations, the values should be accumulated (in order!). In other
|
situations, the values should be accumulated (in order!). In other
|
||||||
situations, subsequence flags should override previous flags (for example,
|
situations, subsequent flags should override previous flags (for example,
|
||||||
the lint-level flags). And some flags (like `-o`) should generate an error
|
the lint-level flags). And some flags (like `-o`) should generate an error
|
||||||
if it is too ambiguous what multiple flags would mean.
|
if it is too ambiguous what multiple flags would mean.
|
||||||
- Always give options a long descriptive name, if only for more understandable
|
- Always give options a long descriptive name, if only for more understandable
|
||||||
compiler scripts.
|
compiler scripts.
|
||||||
- The `--verbose` flag is for adding verbose information to `rustc` output
|
- The `--verbose` flag is for adding verbose information to `rustc` output
|
||||||
when not compiling a program. For example, using it with the `--version`
|
when not compiling a program. For example, using it with the `--version`
|
||||||
flag gives information about the hashes of the code.
|
flag gives information about the hashes of the compiler code.
|
||||||
- Experimental flags and options must be guarded behind the `-Z
|
- Experimental flags and options must be guarded behind the `-Z
|
||||||
unstable-options` flag.
|
unstable-options` flag.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue