Skip to content

Commit

Permalink
Auto merge of #4245 - flip1995:ice_4121, r=matthiaskrgr
Browse files Browse the repository at this point in the history
Test for melted ICE #4121

resolves #4121

r? @matthiaskrgr

changelog: none
  • Loading branch information
bors committed Jul 1, 2019
2 parents 47ada9a + cd4e593 commit cc8b221
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ matrix:
# We don't want to run these always because they go towards
# the build limit within the Travis rust-lang account.
# The jobs are approximately sorted by execution time
# disabled cargo and rls integration test due to https://github.com/rust-lang/rust-clippy/issues/4121
#- env: INTEGRATION=rust-lang/cargo
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang/cargo
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang-nursery/chalk
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
#- env: INTEGRATION=rust-lang/rls
# if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang/rls
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=Geal/nom
if: repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
- env: INTEGRATION=rust-lang/rustfmt
Expand Down
13 changes: 13 additions & 0 deletions tests/ui/ice-4121.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::mem;

pub struct Foo<A, B>(A, B);

impl<A, B> Foo<A, B> {
const HOST_SIZE: usize = mem::size_of::<B>();

pub fn crash() -> bool {
Self::HOST_SIZE == 0
}
}

fn main() {}

0 comments on commit cc8b221

Please sign in to comment.