review nits

This commit is contained in:
steveklabnik 2018-04-23 11:58:11 -04:00
parent 00c860e8a9
commit ac79c41edc
4 changed files with 8 additions and 9 deletions

View file

@ -99,7 +99,7 @@ flag will turn that behavior off.
## no-vectorize-slp
By default, `rustc` will attempt to vectorize loops using [superword-level
parallism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
parallelism](https://llvm.org/docs/Vectorizers.html#the-slp-vectorizer). This
flag will turn that behavior off.
## soft-float
@ -206,4 +206,4 @@ This option lets you control what happens when the code panics.
## incremental
This flag allows you to enable incremental compilation.
This flag allows you to enable incremental compilation.

View file

@ -45,8 +45,8 @@ pub fn foo() {
This will produce this warning:
```bash
> rustc lib.rs --crate-type=lib
```console
$ rustc lib.rs --crate-type=lib
warning: unused variable: `x`
--> lib.rs:2:9
|

View file

@ -165,7 +165,7 @@ error: mutating transmuted &mut T from &T may cause undefined behavior, consider
This lint detects any `const` items with the `#[no_mangle]` attribute.
Constants do not have their symbols exported, and therefore, this probably
means you meant to use a `static`, not a `const. Some example code that
means you meant to use a `static`, not a `const`. Some example code that
triggers this lint:
```rust,ignore

View file

@ -3,12 +3,11 @@
`rustc` is a cross-compiler by default. This means that you can use any compiler to build for any
architecture. The list of *targets* are the possible architectures that you can build for.
You can see the API docs for a given target
[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html), all
of these options can be set on a per-target basis.
To see all the options that you can set with a target, see the docs
[here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_back/target/struct.Target.html).
To compile to a particular target, use the `--target` flag:
```bash
$ rustc src/main.rs --target=wasm32-unknown-unknown
```
```