Skip to content

Commit cc8b221

Browse files
committed
Auto merge of #4245 - flip1995:ice_4121, r=matthiaskrgr
Test for melted ICE #4121 resolves #4121 r? @matthiaskrgr changelog: none
2 parents 47ada9a + cd4e593 commit cc8b221

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.travis.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ matrix:
5151
# We don't want to run these always because they go towards
5252
# the build limit within the Travis rust-lang account.
5353
# The jobs are approximately sorted by execution time
54-
# disabled cargo and rls integration test due to https://github.com/rust-lang/rust-clippy/issues/4121
55-
#- env: INTEGRATION=rust-lang/cargo
56-
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
54+
- env: INTEGRATION=rust-lang/cargo
55+
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
5756
- env: INTEGRATION=rust-lang-nursery/chalk
5857
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
59-
#- env: INTEGRATION=rust-lang/rls
60-
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
58+
- env: INTEGRATION=rust-lang/rls
59+
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
6160
- env: INTEGRATION=Geal/nom
6261
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
6362
- env: INTEGRATION=rust-lang/rustfmt

tests/ui/ice-4121.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use std::mem;
2+
3+
pub struct Foo<A, B>(A, B);
4+
5+
impl<A, B> Foo<A, B> {
6+
const HOST_SIZE: usize = mem::size_of::<B>();
7+
8+
pub fn crash() -> bool {
9+
Self::HOST_SIZE == 0
10+
}
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)