File tree 2 files changed +17
-5
lines changed
2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,12 @@ matrix:
51
51
# We don't want to run these always because they go towards
52
52
# the build limit within the Travis rust-lang account.
53
53
# 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)
57
56
- env : INTEGRATION=rust-lang-nursery/chalk
58
57
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)
61
60
- env : INTEGRATION=Geal/nom
62
61
if : repo =~ /^rust-lang\/rust-clippy$/ AND branch IN (auto, try)
63
62
- env : INTEGRATION=rust-lang/rustfmt
Original file line number Diff line number Diff line change
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 ( ) { }
You can’t perform that action at this time.
0 commit comments