Skip to content

Commit d1e0490

Browse files
committed
Auto merge of #4773 - lzutao:rls/print-something, r=Manishearth
build: avoid timing out in Travis cc #4770 changelog: none
2 parents 000c3ff + b8c2cb1 commit d1e0490

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ matrix:
9090
allow_failures:
9191
- os: windows
9292
env: CARGO_INCREMENTAL=0 OS_WINDOWS=true
93+
- env: INTEGRATION=rust-lang-nursery/stdsimd
9394

9495
before_script:
9596
- |

ci/integration-tests.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ cd checkout
1818

1919
# run clippy on a project, try to be verbose and trigger as many warnings
2020
# as possible for greater coverage
21+
# NOTE: we use `tee` to print any warnings and errors to stdout
22+
# to avoid build timeout in Travis
2123
RUST_BACKTRACE=full \
2224
cargo clippy \
2325
--all-targets \
@@ -26,10 +28,9 @@ cargo clippy \
2628
--cap-lints warn \
2729
-W clippy::pedantic \
2830
-W clippy::nursery \
29-
> clippy_output 2>&1 || true
31+
2>&1 | tee clippy_output
3032

3133
cargo uninstall clippy
32-
cat clippy_output
3334

3435
if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
3536
exit 1

clippy_lints/src/mutex_atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Mutex {
7777
}
7878
}
7979

80-
fn get_atomic_name(ty: Ty<'_>) -> Option<(&'static str)> {
80+
fn get_atomic_name(ty: Ty<'_>) -> Option<&'static str> {
8181
match ty.kind {
8282
ty::Bool => Some("AtomicBool"),
8383
ty::Uint(_) => Some("AtomicUsize"),

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ pub fn match_path_ast(path: &ast::Path, segments: &[&str]) -> bool {
239239
}
240240

241241
/// Gets the definition associated to a path.
242-
pub fn path_to_res(cx: &LateContext<'_, '_>, path: &[&str]) -> Option<(def::Res)> {
242+
pub fn path_to_res(cx: &LateContext<'_, '_>, path: &[&str]) -> Option<def::Res> {
243243
let crates = cx.tcx.crates();
244244
let krate = crates
245245
.iter()

0 commit comments

Comments
 (0)