Skip to content

Commit a763694

Browse files
authored
Merge pull request #702 from lzutao/use-docs
Re-add rust-docs component for lintcheck
2 parents 4eaca3c + 5606f18 commit a763694

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
language: rust
1+
language: shell
22

3-
rust:
4-
- nightly
3+
before_install:
4+
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal -c rust-docs
5+
- export PATH="$HOME/.cargo/bin:$PATH"
56

67
install:
78
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.1/mdbook-v0.3.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin

src/items/generics.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ attributes may give meaning to it.
9292
This example shows using a custom derive attribute to modify the meaning of a
9393
generic parameter.
9494

95-
```ignore
95+
```rust,ignore
9696
// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
9797
// an attribute it understands.
98-
#[derive(MyFlexibleClone)] struct Foo<#[my_flexible_clone(unbounded)] H> {
98+
#[derive(MyFlexibleClone)]
99+
struct Foo<#[my_flexible_clone(unbounded)] H> {
99100
a: *const H
100101
}
101102
```

0 commit comments

Comments
 (0)