Skip to content

Commit

Permalink
Auto merge of #9174 - ehuss:prelude-no_std, r=alexcrichton
Browse files Browse the repository at this point in the history
Update link for no_std attribute.

There was some reorganization in the reference as part of rust-lang/reference#937.
  • Loading branch information
bors committed Feb 16, 2021
2 parents 3e25c9d + f44bc98 commit 1ca930b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/doc/src/reference/features-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Then, in various places in the code ([example1][wasm-bindgen-cfg1],
[example2][wasm-bindgen-cfg2]), it uses `#[cfg(feature = "std")]` attributes
to conditionally enable extra functionality that requires `std`.

[`no_std`]: ../../reference/crates-and-source-files.html#preludes-and-no_std
[`no_std`]: ../../reference/names/preludes.html#the-no_std-attribute
[`wasm-bindgen`]: https://crates.io/crates/wasm-bindgen
[`std` prelude]: ../../std/prelude/index.html
[wasm-bindgen-std]: https://github.com/rustwasm/wasm-bindgen/blob/0.2.69/Cargo.toml#L25
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub fn function_that_requires_std() {
}
```

[`no_std`]: ../../reference/crates-and-source-files.html#preludes-and-no_std
[`no_std`]: ../../reference/names/preludes.html#the-no_std-attribute
[features section]: resolver.md#features

#### Mutually exclusive features
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ your decisions on how to apply versioning to your application, or at least
document what your commitments are.

[`cfg` attribute]: ../../reference/conditional-compilation.md#the-cfg-attribute
[`no_std`]: ../../reference/crates-and-source-files.html#preludes-and-no_std
[`no_std`]: ../../reference/names/preludes.html#the-no_std-attribute
[`pub use`]: ../../reference/items/use-declarations.html
[Cargo feature]: features.md
[Cargo features]: features.md
Expand Down

0 comments on commit 1ca930b

Please sign in to comment.