Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

docopt_macros does not build under rustc 1.18.0 nightly #213

Open
cormac-obrien opened this issue Apr 9, 2017 · 3 comments
Open

docopt_macros does not build under rustc 1.18.0 nightly #213

cormac-obrien opened this issue Apr 9, 2017 · 3 comments

Comments

@cormac-obrien
Copy link

Building version 0.7.0 under rustc 1.18.0-nightly (53f4bc311 2017-04-07):

error[E0308]: mismatched types
   --> .../docopt_macros-0.7.0/src/macro.rs:316:16
    |
316 |         types: P::from_vec(vec![cx.ty_ident(sp, ident("String"))]),
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::vec::Vec`, found struct `syntax::ptr::P`
    |
    = note: expected type `std::vec::Vec<syntax::ptr::P<syntax::ast::Ty>>`
               found type `syntax::ptr::P<[syntax::ptr::P<syntax::ast::Ty>]>`
    = help: here are some functions which might fulfill your needs:
            - .into_vec()
            - .to_vec()

error[E0308]: mismatched types
   --> .../docopt_macros-0.7.0/src/macro.rs:317:19
    |
317 |         bindings: P::new(),
    |                   ^^^^^^^^ expected struct `std::vec::Vec`, found struct `syntax::ptr::P`
    |
    = note: expected type `std::vec::Vec<syntax::ast::TypeBinding>`
               found type `syntax::ptr::P<[_]>`
    = help: here are some functions which might fulfill your needs:
            - .into_vec()
            - .to_vec()

error[E0063]: missing field `span` in initializer of `syntax::ast::PathSegment`
   --> .../docopt_macros-0.7.0/src/macro.rs:321:24
    |
321 |         segments: vec![ast::PathSegment {
    |                        ^^^^^^^^^^^^^^^^ missing `span`

error: aborting due to 3 previous errors
@BurntSushi
Copy link
Member

Note that this is docopt_macros, not docopt.

If you're seeking stability, I'd recommend not using docopt_macros.

@BurntSushi BurntSushi changed the title docopt does not build under rustc 1.18.0 nightly docopt_macros does not build under rustc 1.18.0 nightly Apr 9, 2017
@izderadicka
Copy link

Same here

@snim2
Copy link

snim2 commented May 26, 2017

I have the same problem and I was about to raise a PR, but I think #209 already fixes this?

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

No branches or pull requests

4 participants