Skip to content

Does not compile using the latest nightly #7

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

Closed
jamesmunns opened this issue May 23, 2018 · 1 comment
Closed

Does not compile using the latest nightly #7

jamesmunns opened this issue May 23, 2018 · 1 comment

Comments

@jamesmunns
Copy link

james@archx1cv4r2 ➜  rtfm-syntax git:(master) cargo build
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading syn v0.13.11                                                       
 Downloading backtrace v0.3.8                                                   
 Downloading backtrace-sys v0.1.19                                              
 Downloading libc v0.2.41                                                       
   Compiling unicode-xid v0.0.4                                                 
   Compiling cc v1.0.15
   Compiling quote v0.3.15
   Compiling unicode-xid v0.1.0
   Compiling libc v0.2.41
   Compiling rustc-demangle v0.1.8
   Compiling cfg-if v0.1.3
   Compiling either v1.5.0
   Compiling synom v0.11.3
   Compiling proc-macro2 v0.3.8
   Compiling syn v0.11.11
error[E0433]: failed to resolve. Could not find `Op` in `proc_macro`
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:131:42
    |
131 |                 let mut op = proc_macro::Op::new(tt.op(), spacing);
    |                                          ^^ Could not find `Op` in `proc_macro`

error[E0433]: failed to resolve. Could not find `Term` in `proc_macro`
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:446:59
    |
446 |             Span::Nightly(s) => Term::Nightly(proc_macro::Term::new(string, s)),
    |                                                           ^^^^ Could not find `Term` in `proc_macro`

error[E0412]: cannot find type `Term` in module `proc_macro`
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:439:25
    |
439 |     Nightly(proc_macro::Term),
    |                         ^^^^ not found in `proc_macro`
help: possible candidates are found in other modules, you can import them into scope
    |
3   | use Term;
    |
3   | use imp::Term;
    |
3   | use stable::Term;
    |

error[E0412]: cannot find type `Term` in module `proc_macro`
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:473:44
    |
473 |     fn unwrap_nightly(self) -> proc_macro::Term {
    |                                            ^^^^ not found in `proc_macro`
help: possible candidates are found in other modules, you can import them into scope
    |
3   | use Term;
    |
3   | use imp::Term;
    |
3   | use stable::Term;
    |

error[E0599]: no variant named `Op` found for type `proc_macro::TokenTree` in the current scope
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:228:13
    |
228 |             proc_macro::TokenTree::Op(tt) => {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`

error[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope
   --> /home/james/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.3.8/src/unstable.rs:237:13
    |
237 |             proc_macro::TokenTree::Term(s) => ::Term::_new(Term::Nightly(s)).into(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`

error: aborting due to 6 previous errors

Some errors occurred: E0412, E0433, E0599.
For more information about an error, try `rustc --explain E0412`.
error: Could not compile `proc-macro2`.
warning: build failed, waiting for other jobs to finish...
error: build failed
@fmckeogh
Copy link
Contributor

fmckeogh commented Jun 5, 2018

I'm working on a fix; bumping dependancy versions does away with the failed to resolve. Could not find 'Op' in 'proc_macro' error, but introduces no method named 'as_ref' found for type 'proc_macro2::Ident' in the current scope

bfritz added a commit to bfritz/atsamd21-rs that referenced this issue Jul 14, 2018
Build is broken with latest nightly due to [panic_fmt removal]:

    ~/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.1.1/src/lib.rs:25:1
       |
    25 | #[lang = "panic_fmt"]
       | ^^^^^^^^^^^^^^^^^^^^^ definition of unknown language item `panic_fmt`

Upgrading to newer panic-abort bumps into proc-macro2 issues
described in rtic-rs/rtic-syntax#7 .

Stumbled onto this when investigating a [build failure] for atsamd-rs#2.

[panic_fmt removal]: https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
[build failure]: https://travis-ci.org/wez/atsamd21-rs/builds/403798265#L570
bors bot added a commit that referenced this issue Aug 19, 2018
8: Fix `Does not compile using the latest nightly #7` r=japaric a=chocol4te

I bumped dependencies and added new `proc-macro2` syntax. I don't think what I wrote is best practice though :(

Fixes #7 

Co-authored-by: Ferdia McKeogh <[email protected]>
Co-authored-by: Jorge Aparicio <[email protected]>
@bors bors bot closed this as completed in #8 Aug 19, 2018
wez pushed a commit to atsamd-rs/atsamd that referenced this issue Aug 23, 2018
Build is broken with latest nightly due to [panic_fmt removal]:

    ~/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.1.1/src/lib.rs:25:1
       |
    25 | #[lang = "panic_fmt"]
       | ^^^^^^^^^^^^^^^^^^^^^ definition of unknown language item `panic_fmt`

Upgrading to newer panic-abort bumps into proc-macro2 issues
described in rtic-rs/rtic-syntax#7 .

Stumbled onto this when investigating a [build failure] for #2.

[panic_fmt removal]: https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
[build failure]: https://travis-ci.org/wez/atsamd21-rs/builds/403798265#L570
kaizensparc pushed a commit to kaizensparc/atsamd that referenced this issue Dec 24, 2021
Build is broken with latest nightly due to [panic_fmt removal]:

    ~/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-abort-0.1.1/src/lib.rs:25:1
       |
    25 | #[lang = "panic_fmt"]
       | ^^^^^^^^^^^^^^^^^^^^^ definition of unknown language item `panic_fmt`

Upgrading to newer panic-abort bumps into proc-macro2 issues
described in rtic-rs/rtic-syntax#7 .

Stumbled onto this when investigating a [build failure] for atsamd-rs#2.

[panic_fmt removal]: https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
[build failure]: https://travis-ci.org/wez/atsamd21-rs/builds/403798265#L570
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants