Skip to content

Commit 7975591

Browse files
committed
Merge remote-tracking branch 'origin/beta1.35' into backport-merge
2 parents 2b8feb6 + 265318d commit 7975591

File tree

9 files changed

+17
-16
lines changed

9 files changed

+17
-16
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: rust
22

3-
rust: nightly
3+
rust: beta
44

55
os:
66
- linux
@@ -17,6 +17,7 @@ branches:
1717
env:
1818
global:
1919
- RUST_BACKTRACE=1
20+
- RUSTC_BOOTSTRAP=1
2021

2122
install:
2223
- |
@@ -93,7 +94,7 @@ matrix:
9394
script:
9495
- |
9596
rm rust-toolchain
96-
./setup-toolchain.sh
97+
rustup override set beta
9798
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
9899
- |
99100
if [ -z ${INTEGRATION} ]; then

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ All notable changes to this project will be documented in this file.
10351035
[`redundant_clone`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
10361036
[`redundant_closure`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
10371037
[`redundant_closure_call`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_call
1038+
[`redundant_closure_for_method_calls`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
10381039
[`redundant_field_names`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
10391040
[`redundant_pattern`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern
10401041
[`redundant_pattern_matching`]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching

appveyor.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ branches:
1616

1717
install:
1818
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
19-
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
19+
- rustup-init.exe -y --default-host %TARGET% --default-toolchain beta
2020
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
21-
- git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt
22-
- set /p RUSTC_HASH=<rustc-hash.txt
23-
- del rust-toolchain
24-
- cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
25-
- rustup-toolchain-install-master %RUSTC_HASH% -f -n master
26-
- rustup default master
2721
- set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
2822
- rustc -V
2923
- cargo -V
@@ -32,6 +26,7 @@ build: false
3226

3327
test_script:
3428
- set RUST_BACKTRACE=1
29+
- set RUSTC_BOOTSTRAP=1
3530
- cargo build --features debugging
3631
- cargo test --features debugging
3732

clippy_lints/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
614614
enum_glob_use::ENUM_GLOB_USE,
615615
enum_variants::MODULE_NAME_REPETITIONS,
616616
enum_variants::PUB_ENUM_VARIANT_NAMES,
617+
eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS,
617618
functions::TOO_MANY_LINES,
618619
if_not_else::IF_NOT_ELSE,
619620
infinite_iter::MAYBE_INFINITE_ITER,

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly
1+
beta

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ where
8686
})
8787
.map(|p| ("CARGO_TARGET_DIR", p));
8888

89-
// Run the dogfood tests directly on nightly cargo. This is required due
90-
// to a bug in rustup.rs when running cargo on custom toolchains. See issue #3118.
89+
// Don't run the dogfood tests on beta
9190
if std::env::var_os("CLIPPY_DOGFOOD").is_some() && cfg!(windows) {
92-
args.insert(0, "+nightly".to_string());
91+
return Ok(())
9392
}
9493

9594
let exit_status = std::process::Command::new("cargo")

tests/ui/eta.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
clippy::option_map_unit_fn,
1010
clippy::trivially_copy_pass_by_ref
1111
)]
12-
#![warn(clippy::redundant_closure, clippy::needless_borrow)]
12+
#![warn(
13+
clippy::redundant_closure,
14+
clippy::redundant_closure_for_method_calls,
15+
clippy::needless_borrow
16+
)]
1317

1418
use std::path::PathBuf;
1519

tests/ui/map_clone.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(clippy::iter_cloned_collect)]
44
#![allow(clippy::clone_on_copy)]
55
#![allow(clippy::missing_docs_in_private_items)]
6-
#![allow(clippy::redundant_closure)]
6+
#![allow(clippy::redundant_closure_for_method_calls)]
77

88
fn main() {
99
let _: Vec<i8> = vec![5_i8; 6].iter().copied().collect();

tests/ui/map_clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![allow(clippy::iter_cloned_collect)]
44
#![allow(clippy::clone_on_copy)]
55
#![allow(clippy::missing_docs_in_private_items)]
6-
#![allow(clippy::redundant_closure)]
6+
#![allow(clippy::redundant_closure_for_method_calls)]
77

88
fn main() {
99
let _: Vec<i8> = vec![5_i8; 6].iter().map(|x| *x).collect();

0 commit comments

Comments
 (0)