Skip to content

Commit 1652393

Browse files
authored
Merge pull request #3371 from matthiaskrgr/temp_breakage_fix
merge various PRs to make CI green again
2 parents 457e7f1 + 3f01619 commit 1652393

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ matrix:
7575
- os: windows
7676

7777
script:
78-
- |
79-
rm rust-toolchain
80-
cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
81-
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
82-
travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH
83-
rustup default master
84-
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
78+
# uncomment once https://github.com/rust-lang/rust/issues/55376 is fixed
79+
# - |
80+
# rm rust-toolchain
81+
# cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
82+
# RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
83+
# travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH
84+
# rustup default master
85+
# export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib
8586
- |
8687
if [ -z ${INTEGRATION} ]; then
8788
./ci/base-tests.sh && sleep 5

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ rustc_tools_util = { version = "0.1.0", path = "rustc_tools_util"}
4848
[dev-dependencies]
4949
clippy_dev = { version = "0.0.1", path = "clippy_dev" }
5050
cargo_metadata = "0.6"
51-
compiletest_rs = "0.3.7"
51+
compiletest_rs = { git = "https://github.com/laumann/compiletest-rs", rev = "12c980f47971b5ba6beb7cb2ffebf8b32f6766ea" }
5252
lazy_static = "1.0"
5353
serde_derive = "1.0"
5454
clippy-mini-macro-test = { version = "0.2", path = "mini-macro" }

appveyor.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ install:
2020
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
2121
- git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}' >rustc-hash.txt
2222
- set /p RUSTC_HASH=<rustc-hash.txt
23-
- del rust-toolchain
24-
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
25-
- rustup-toolchain-install-master %RUSTC_HASH% -f -n master
26-
- rustup default master
27-
- set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
23+
# uncomment once https://github.com/rust-lang/rust/issues/55376 is fixed
24+
# - del rust-toolchain
25+
# - cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
26+
# - rustup-toolchain-install-master %RUSTC_HASH% -f -n master
27+
# - rustup default master
28+
# - set PATH=%PATH%;C:\Users\appveyor\.rustup\toolchains\master\bin
2829
- rustc -V
2930
- cargo -V
3031

clippy_lints/src/redundant_clone.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::rustc::hir::{def_id, Body, FnDecl};
1212
use crate::rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
1313
use crate::rustc::mir::{
1414
self, traversal,
15-
visit::{PlaceContext, Visitor},
15+
visit::{MutatingUseContext, NonUseContext, PlaceContext, Visitor},
1616
TerminatorKind,
1717
};
1818
use crate::rustc::ty;
@@ -279,7 +279,7 @@ impl<'tcx> mir::visit::Visitor<'tcx> for LocalUseVisitor {
279279

280280
fn visit_local(&mut self, local: &mir::Local, ctx: PlaceContext<'tcx>, _: mir::Location) {
281281
match ctx {
282-
PlaceContext::Drop | PlaceContext::StorageDead => return,
282+
PlaceContext::MutatingUse(MutatingUseContext::Drop) | PlaceContext::NonUse(NonUseContext::StorageDead) => return,
283283
_ => {},
284284
}
285285

0 commit comments

Comments
 (0)