Skip to content

Commit

Permalink
Merge pull request #702 from lzutao/use-docs
Browse files Browse the repository at this point in the history
Re-add rust-docs component for lintcheck
  • Loading branch information
ehuss committed Oct 22, 2019
2 parents 4eaca3c + 5606f18 commit a763694
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: rust
language: shell

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

install:
- 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
Expand Down
5 changes: 3 additions & 2 deletions src/items/generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ attributes may give meaning to it.
This example shows using a custom derive attribute to modify the meaning of a
generic parameter.

```ignore
```rust,ignore
// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
// an attribute it understands.
#[derive(MyFlexibleClone)] struct Foo<#[my_flexible_clone(unbounded)] H> {
#[derive(MyFlexibleClone)]
struct Foo<#[my_flexible_clone(unbounded)] H> {
a: *const H
}
```
Expand Down

0 comments on commit a763694

Please sign in to comment.