Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Build fails with current rust/master #28

Closed
Eroc33 opened this issue Jan 10, 2016 · 5 comments
Closed

Build fails with current rust/master #28

Eroc33 opened this issue Jan 10, 2016 · 5 comments

Comments

@Eroc33
Copy link

Eroc33 commented Jan 10, 2016

    $cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading serde_codegen v0.6.8
   Compiling serde_codegen v0.6.8
   Compiling quasi v0.3.12
   Compiling aster v0.9.3
   Compiling quasi_codegen v0.3.12
<syntax macros>:5:1: 5:9 error: mismatched types:
 expected `bool`,
    found `core::result::Result<_, _>`
(expected bool,
    found enum `core::result::Result`) [E0308]
<syntax macros>:5 Ok ( e ) => e , Err ( mut e ) => { e . emit (  ) ; panic ! ( FatalError ) ; }
                  ^~~~~~~~
D:\msys2\home\euan\.cargo\registry\src\github.com-0a35038f75765ae4\quasi_codegen-0.3.12\src\lib.rs:589:9: 589:40 note: in this expansion of panictry! (defined in <syntax macros>)
<syntax macros>:5:1: 5:9 help: run `rustc --explain E0308` to see a detailed explanation
<syntax macros>:5:17: 5:30 error: mismatched types:
 expected `bool`,
    found `core::result::Result<_, _>`
(expected bool,
    found enum `core::result::Result`) [E0308]
<syntax macros>:5 Ok ( e ) => e , Err ( mut e ) => { e . emit (  ) ; panic ! ( FatalError ) ; }
                                  ^~~~~~~~~~~~~
D:\msys2\home\euan\.cargo\registry\src\github.com-0a35038f75765ae4\quasi_codegen-0.3.12\src\lib.rs:589:9: 589:40 note: in this expansion of panictry! (defined in <syntax macros>)
<syntax macros>:5:17: 5:30 help: run `rustc --explain E0308` to see a detailed explanation
<syntax macros>:5:36: 5:49 error: the type of this value must be known in this context
<syntax macros>:5 Ok ( e ) => e , Err ( mut e ) => { e . emit (  ) ; panic ! ( FatalError ) ; }
                                                     ^~~~~~~~~~~~~
D:\msys2\home\euan\.cargo\registry\src\github.com-0a35038f75765ae4\quasi_codegen-0.3.12\src\lib.rs:589:9: 589:40 note: in this expansion of panictry! (defined in <syntax macros>)
error: aborting due to 3 previous errors
Could not compile `quasi_codegen`.

To learn more, run the command again with --verbose.
@erickt
Copy link

erickt commented Jan 11, 2016

Sigh, already?! Silly nightly rust breakin my stuffs...

@erickt
Copy link

erickt commented Jan 11, 2016

I just ran a build and it seemed to work for me. Can you try doing a cargo update && cargo build and see if that fixes things for you? If not, what version of rust are you using?

@Eroc33
Copy link
Author

Eroc33 commented Jan 11, 2016

Version is rustc 1.7.0-nightly (d70ab2bdf 2016-01-08) on windows.
Actually I've just realised that this is actually occurring when I add serde_macros as a dependency to another crate, but the error is reported in quasi_codegen, adding serde_codegen or quasi_codegen doesn't cause an error for some reason though.
Should I close this and create an issue on serde?

@Eroc33
Copy link
Author

Eroc33 commented Jan 11, 2016

I (re)built rust and cargo from git and I don't get this issue anymore on rustc 1.7.0-dev (0672ed4e8 2016-01-11) so I'm going to close the issue now.

@Eroc33 Eroc33 closed this as completed Jan 11, 2016
@Eroc33
Copy link
Author

Eroc33 commented Jan 11, 2016

Actually I was wrong it's still occurring on rustc 1.7.0-dev (0672ed4e8 2016-01-11) also.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants