Skip to content

subgoal_abstraction test fails on windows #169

Closed
@memoryruins

Description

@memoryruins

Currently, Chalk fails to build locally and on travis with the following error:

error: expected `*` or `+`
   --> src/fold.rs:440:35
    |
440 |     ($s:ident $([$($tt_args:tt)*])? { $($name:ident),* $(,)* } $($w:tt)*) => {
    |                                   ^
    |
    = note: `?` is not a macro repetition operator
error: expected `*` or `+`
   --> src/fold.rs:442:43
    |
442 |             @parse_tt_args($($($tt_args)*)?)
    |                                           ^
    |
    = note: `?` is not a macro repetition operator

I'm guessing this due to some recent changes in rust-lang/rust#48075, so I swapped the ?s with *s.
Chalk successfully builds and runs after the change; however, it fails the following test
https://github.com/rust-lang-nursery/chalk/blob/82c113efb5fbaf4e60d1c9d33ace05ba08b7631a/src/solve/slg/test.rs#L225-L242

---- solve::slg::test::subgoal_abstraction stdout ----
program {
trait Foo {  } struct Box < T > {  } impl < T > Foo for T where Box < T > :
Foo {  } }
----------------------------------------------------------------------
goal { exists < T > { T : Foo } }
thread 'solve::slg::test::subgoal_abstraction' panicked at 'attempt to subtract with overflow',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions