Skip to content

Commit eb85acd

Browse files
committed
Fix a broken link, and add link checking to CI.
1 parent 7b4dbc5 commit eb85acd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/rbe.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install Rust
1515
run: |
1616
rustup set profile minimal
17-
rustup toolchain install stable -c rust-docs
17+
rustup toolchain install nightly -c rust-docs
1818
rustup default nightly
1919
2020
- name: Install mdbook
@@ -35,6 +35,12 @@ jobs:
3535
- name: Build HTML
3636
run: mdbook build
3737

38+
- name: Check for broken links
39+
run: |
40+
curl -sSLo linkcheck.sh \
41+
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
42+
sh linkcheck.sh --all rust-by-example
43+
3844
- name: Upload Artifact
3945
uses: actions/upload-artifact@v1
4046
with:

src/unsafe/asm.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ assert_eq!(x, 4 * 6);
285285

286286
## Symbol operands and ABI clobbers
287287

288-
By default, `asm!` assumes that any register not specified as an output will have its contents preserved by the assembly code. The [`clobber_abi`](#abi-clobbers) argument to `asm!` tells the compiler to automatically insert the necessary clobber operands according to the given calling convention ABI: any register which is not fully preserved in that ABI will be treated as clobbered. Multiple `clobber_abi` arguments may be provided and all clobbers from all specified ABIs will be inserted.
288+
By default, `asm!` assumes that any register not specified as an output will have its contents preserved by the assembly code. The [`clobber_abi`] argument to `asm!` tells the compiler to automatically insert the necessary clobber operands according to the given calling convention ABI: any register which is not fully preserved in that ABI will be treated as clobbered. Multiple `clobber_abi` arguments may be provided and all clobbers from all specified ABIs will be inserted.
289+
290+
[`clobber_abi`]: ../../reference/inline-assembly.html#abi-clobbers
289291

290292
```rust
291293
use std::arch::asm;

0 commit comments

Comments
 (0)