Navigation Menu

Skip to content

Commit

Permalink
review nits
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Apr 23, 2018
1 parent 00c860e commit ac79c41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/doc/rustc/src/codegen-options/index.md
Expand Up @@ -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
Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions src/doc/rustc/src/lints/levels.md
Expand Up @@ -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
|
Expand Down
2 changes: 1 addition & 1 deletion src/doc/rustc/src/lints/listing/deny-by-default.md
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions src/doc/rustc/src/targets/index.md
Expand Up @@ -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
```
```

0 comments on commit ac79c41

Please sign in to comment.