Auto merge of #4245 - flip1995:ice_4121, r=matthiaskrgr
Test for melted ICE #4121 resolves #4121 r? @matthiaskrgr changelog: none
This commit is contained in:
commit
cc8b2218e6
@ -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
|
||||
|
13
tests/ui/ice-4121.rs
Normal file
13
tests/ui/ice-4121.rs
Normal file
@ -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() {}
|
Loading…
x
Reference in New Issue
Block a user