Skip to content

Commit 1ca930b

Browse files
committed
Auto merge of #9174 - ehuss:prelude-no_std, r=alexcrichton
Update link for no_std attribute. There was some reorganization in the reference as part of rust-lang/reference#937.
2 parents 3e25c9d + f44bc98 commit 1ca930b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/doc/src/reference/features-examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Then, in various places in the code ([example1][wasm-bindgen-cfg1],
6262
[example2][wasm-bindgen-cfg2]), it uses `#[cfg(feature = "std")]` attributes
6363
to conditionally enable extra functionality that requires `std`.
6464

65-
[`no_std`]: ../../reference/crates-and-source-files.html#preludes-and-no_std
65+
[`no_std`]: ../../reference/names/preludes.html#the-no_std-attribute
6666
[`wasm-bindgen`]: https://crates.io/crates/wasm-bindgen
6767
[`std` prelude]: ../../std/prelude/index.html
6868
[wasm-bindgen-std]: https://github.com/rustwasm/wasm-bindgen/blob/0.2.69/Cargo.toml#L25

src/doc/src/reference/features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub fn function_that_requires_std() {
252252
}
253253
```
254254

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

258258
#### Mutually exclusive features

src/doc/src/reference/semver.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ your decisions on how to apply versioning to your application, or at least
13281328
document what your commitments are.
13291329

13301330
[`cfg` attribute]: ../../reference/conditional-compilation.md#the-cfg-attribute
1331-
[`no_std`]: ../../reference/crates-and-source-files.html#preludes-and-no_std
1331+
[`no_std`]: ../../reference/names/preludes.html#the-no_std-attribute
13321332
[`pub use`]: ../../reference/items/use-declarations.html
13331333
[Cargo feature]: features.md
13341334
[Cargo features]: features.md

0 commit comments

Comments
 (0)