mirror of
https://github.com/rust-lang/book.git
synced 2026-09-14 00:34:47 -04:00
We need to track Rust master, but don't want to cover unstable things. As such, a new lint, `stable-check`, is added. The second edition was already lint clean, but the first needed some tweaks: 1. The closures chapter was showing off details of the closure traits, so just don't do that. 2. The FFI chapter was using internal libc to compile the tests, so just don't compile them anymore. 3. The compiler plugins chapter was vestigial and was moved to the unstable book. Fixes #558
30 lines
755 B
Bash
30 lines
755 B
Bash
# Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
|
# file at the top-level directory of this distribution and at
|
|
# http://rust-lang.org/COPYRIGHT.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
# option. This file may not be copied, modified, or distributed
|
|
# except according to those terms.
|
|
|
|
set -e
|
|
|
|
export PATH=$PATH:/home/travis/.cargo/bin;
|
|
|
|
# feature check
|
|
cd ci/stable-check
|
|
|
|
cargo run -- ../../first-edition/src
|
|
cargo run -- ../../second-edition/src
|
|
|
|
cd ../..
|
|
|
|
# tests for the second edition
|
|
|
|
cd second-edition
|
|
bash spellcheck.sh list
|
|
mdbook test
|
|
mdbook build
|
|
cargo run --bin lfp src
|