Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on nightly 2019-07-10 (cd2cd4c96) #1569

Closed
phil-opp opened this issue Jul 11, 2019 · 2 comments
Closed

Build fails on nightly 2019-07-10 (cd2cd4c96) #1569

phil-opp opened this issue Jul 11, 2019 · 2 comments

Comments

@phil-opp
Copy link

The build currently fails for me with the latest nightly rustc 1.38.0-nightly (cd2cd4c96 2019-07-10) with the following errors:

Error Message
error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:142:44
    |
142 |     variants: &'a Punctuated<syn::Variant, Token![,]>,
    |                                            ^^^^^^^^^
    |                                            |
    |                                            unresolved import
    |                                            help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:187:40
    |
187 |     fields: &'a Punctuated<syn::Field, Token![,]>,
    |                                        ^^^^^^^^^
    |                                        |
    |                                        unresolved import
    |                                        help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1542:44
     |
1542 |     metas: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1586:44
     |
1586 |     items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1594:44
     |
1594 |     items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                            ^^^^^^^^^
     |                                            |
     |                                            unresolved import
     |                                            help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1602:41
     |
1602 |     items: &Punctuated<syn::NestedMeta, Token![,]>,
     |                                         ^^^^^^^^^
     |                                         |
     |                                         unresolved import
     |                                         help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
    --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1702:56
     |
1702 |     struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>);
     |                                                        ^^^^^^^^^
     |                                                        |
     |                                                        unresolved import
     |                                                        help: a similar path exists: `syn::token`
     |
     = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:198:31
    |
198 |                 colon_token: <Token![:]>::default(),
    |                               ^^^^^^^^^
    |                               |
    |                               unresolved import
    |                               help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:232:27
    |
232 |             colon_token: <Token![:]>::default(),
    |                           ^^^^^^^^^
    |                           |
    |                           unresolved import
    |                           help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:289:36
    |
289 |                         lt_token: <Token![<]>::default(),
    |                                    ^^^^^^^^^
    |                                    |
    |                                    unresolved import
    |                                    help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
   --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:309:36
    |
309 |                         gt_token: <Token![>]>::default(),
    |                                    ^^^^^^^^^
    |                                    |
    |                                    unresolved import
    |                                    help: a similar path exists: `syn::token`
    |
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error[E0433]: failed to resolve: unresolved import
  --> /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/fragment.rs:58:18
   |
58 |                 <Token![,]>::default().to_tokens(out);
   |                  ^^^^^^^^^
   |                  |
   |                  unresolved import
   |                  help: a similar path exists: `syn::token`
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to 12 previous errors

For more information about this error, try `rustc --explain E0433`.
error: Could not compile `serde_derive`.

With -Z external-macro-backtrace:

Error Message
error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:37:55
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
37  | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
    | |                                                       ^^^^^
    | |                                                       |
    | |                                                       unresolved import
    | |                                                       help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:142:44
    |
142 |       variants: &'a Punctuated<syn::Variant, Token![,]>,
    |                                              --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:37:55
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
37  | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
    | |                                                       ^^^^^
    | |                                                       |
    | |                                                       unresolved import
    | |                                                       help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/ast.rs:187:40
    |
187 |       fields: &'a Punctuated<syn::Field, Token![,]>,
    |                                          --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
    --> <::syn::token::Token macros>:37:55
     |
1    | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2    | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3    | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4    | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...    |
37   | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
     | |                                                       ^^^^^
     | |                                                       |
     | |                                                       unresolved import
     | |                                                       help: a similar path exists: `syn::token`
...    |
54   | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55   | | ( $ ) => { crate :: token :: Dollar } ;
     | |_______________________________________- in this expansion of `Token!`
     | 
    ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1542:44
     |
1542 |       metas: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                              --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
    --> <::syn::token::Token macros>:37:55
     |
1    | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2    | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3    | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4    | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...    |
37   | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
     | |                                                       ^^^^^
     | |                                                       |
     | |                                                       unresolved import
     | |                                                       help: a similar path exists: `syn::token`
...    |
54   | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55   | | ( $ ) => { crate :: token :: Dollar } ;
     | |_______________________________________- in this expansion of `Token!`
     | 
    ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1586:44
     |
1586 |       items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                              --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
    --> <::syn::token::Token macros>:37:55
     |
1    | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2    | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3    | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4    | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...    |
37   | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
     | |                                                       ^^^^^
     | |                                                       |
     | |                                                       unresolved import
     | |                                                       help: a similar path exists: `syn::token`
...    |
54   | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55   | | ( $ ) => { crate :: token :: Dollar } ;
     | |_______________________________________- in this expansion of `Token!`
     | 
    ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1594:44
     |
1594 |       items: &'a Punctuated<syn::NestedMeta, Token![,]>,
     |                                              --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
    --> <::syn::token::Token macros>:37:55
     |
1    | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2    | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3    | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4    | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...    |
37   | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
     | |                                                       ^^^^^
     | |                                                       |
     | |                                                       unresolved import
     | |                                                       help: a similar path exists: `syn::token`
...    |
54   | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55   | | ( $ ) => { crate :: token :: Dollar } ;
     | |_______________________________________- in this expansion of `Token!`
     | 
    ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1602:41
     |
1602 |       items: &Punctuated<syn::NestedMeta, Token![,]>,
     |                                           --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
    --> <::syn::token::Token macros>:32:15
     |
1    | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2    | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3    | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4    | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...    |
32   | | => { crate :: token :: Add } ; ( += ) => { crate :: token :: AddEq } ; ( & )
     | |               ^^^^^
     | |               |
     | |               unresolved import
     | |               help: a similar path exists: `syn::token`
...    |
54   | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55   | | ( $ ) => { crate :: token :: Dollar } ;
     | |_______________________________________- in this expansion of `Token!`
     | 
    ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/internals/attr.rs:1702:56
     |
1702 |       struct BorrowedLifetimes(Punctuated<syn::Lifetime, Token![+]>);
     |                                                          --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:36:53
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
36  | | { crate :: token :: CaretEq } ; ( : ) => { crate :: token :: Colon } ; ( :: )
    | |                                                     ^^^^^
    | |                                                     |
    | |                                                     unresolved import
    | |                                                     help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:198:31
    |
198 |                   colon_token: <Token![:]>::default(),
    |                                 --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:36:53
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
36  | | { crate :: token :: CaretEq } ; ( : ) => { crate :: token :: Colon } ; ( :: )
    | |                                                     ^^^^^
    | |                                                     |
    | |                                                     unresolved import
    | |                                                     help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:232:27
    |
232 |               colon_token: <Token![:]>::default(),
    |                             --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:43:48
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
43  | | { crate :: token :: Le } ; ( < ) => { crate :: token :: Lt } ; ( *= ) => {
    | |                                                ^^^^^
    | |                                                |
    | |                                                unresolved import
    | |                                                help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:289:36
    |
289 |                           lt_token: <Token![<]>::default(),
    |                                      --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
   --> <::syn::token::Token macros>:42:53
    |
1   | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2   | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3   | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4   | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...   |
42  | | ) => { crate :: token :: Ge } ; ( > ) => { crate :: token :: Gt } ; ( <= ) =>
    | |                                                     ^^^^^
    | |                                                     |
    | |                                                     unresolved import
    | |                                                     help: a similar path exists: `syn::token`
...   |
54  | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55  | | ( $ ) => { crate :: token :: Dollar } ;
    | |_______________________________________- in this expansion of `Token!`
    | 
   ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/bound.rs:309:36
    |
309 |                           gt_token: <Token![>]>::default(),
    |                                      --------- in this macro invocation

error[E0433]: failed to resolve: unresolved import
  --> <::syn::token::Token macros>:37:55
   |
1  | / ( abstract ) => { crate :: token :: Abstract } ; ( as ) => {
2  | | crate :: token :: As } ; ( async ) => { crate :: token :: Async } ; ( auto )
3  | | => { crate :: token :: Auto } ; ( become ) => { crate :: token :: Become } ; (
4  | | box ) => { crate :: token :: Box } ; ( break ) => { crate :: token :: Break }
...  |
37 | | => { crate :: token :: Colon2 } ; ( , ) => { crate :: token :: Comma } ; ( / )
   | |                                                       ^^^^^
   | |                                                       |
   | |                                                       unresolved import
   | |                                                       help: a similar path exists: `syn::token`
...  |
54 | | ) => { crate :: token :: Tilde } ; ( _ ) => { crate :: token :: Underscore } ;
55 | | ( $ ) => { crate :: token :: Dollar } ;
   | |_______________________________________- in this expansion of `Token!`
   | 
  ::: /home/philipp/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-1.0.94/src/fragment.rs:58:18
   |
58 |                   <Token![,]>::default().to_tokens(out);
   |                    --------- in this macro invocation

error: aborting due to 12 previous errors

My project is quite minimal. The lib.rs is empty and the Cargo.toml looks like this:

[package]
name = "playground"
version = "0.1.0"
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
edition = "2018"

[dependencies]
serde_derive = "1.0.94"

Versions:

> rustc --version -v
rustc 1.38.0-nightly (cd2cd4c96 2019-07-10)
binary: rustc
commit-hash: cd2cd4c9627e52c33e68e8c93a8916dc11094cbb
commit-date: 2019-07-10
host: x86_64-unknown-linux-gnu
release: 1.38.0-nightly
LLVM version: 8.0
> cargo --version -v
cargo 1.38.0-nightly (677a180f4 2019-07-08)
release: 1.38.0
commit-hash: 677a180f4c8ca1dcef594f68dd0e63e4f08621f5
commit-date: 2019-07-08
@dtolnay
Copy link
Member

dtolnay commented Jul 11, 2019

Thanks, this is being tracked in rust-lang/rust#62562.

@dtolnay dtolnay closed this as completed Jul 11, 2019
@phil-opp
Copy link
Author

@dtolnay Thanks! I looked through the rust issues but I somehow missed this.

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

No branches or pull requests

2 participants