Skip to content

Commit 284bd7a

Browse files
committed
Fix CI
1 parent 1f0375b commit 284bd7a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
# Allow for develop branch to break
1212
matrix:
1313
allow_failures:
14-
- env: GHCVER=head CABALVER=head
14+
- env: GHCVER=head CABALVER=head
1515

1616
# Manually install ghc and cabal
1717
before_install:

language-rust.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ library
3131
hs-source-dirs: src
3232

3333
ghc-options: -Wall
34+
35+
if impl(ghc >= 8)
36+
ghc-options:
3437
-Wincomplete-patterns
3538
-Wincomplete-uni-patterns
3639
-Wmissing-signatures

src/Language/Rust/Parser/Internal.y

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ generic_values :: { Spanned ([Lifetime Span], [Ty Span], [(Ident, Ty Span)]) }
449449
| lt_ty_qual_path ',' sep_by1T(binding,',') gt '>' { Spanned ([], [unspan $1],toList $3) ($1 # $>) }
450450
| lt_ty_qual_path gt '>' { Spanned ([], [unspan $1],[] ) ($1 # $>) }
451451

452-
binding : ident '=' ty { (unspan $1, $3) }
452+
binding :: { (Ident, Ty Span) }
453+
: ident '=' ty { (unspan $1, $3) }
453454

454455

455456
-- Type related:

0 commit comments

Comments
 (0)