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

master isn't compiling #51

Closed
ckaran opened this issue Jan 19, 2021 · 6 comments
Closed

master isn't compiling #51

ckaran opened this issue Jan 19, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ckaran
Copy link
Collaborator

ckaran commented Jan 19, 2021

I just pulled the latest master (d5df478), and got the compilation errors below. Any ideas?

Compilation errors

cfkaran2@Hammer:~/Documents/repositories/generic-field-projection$ git clean -xdn
Would remove Cargo.lock
Would remove target/
cfkaran2@Hammer:~/Documents/repositories/generic-field-projection$ git clean -xdf
Removing Cargo.lock
Removing target/
cfkaran2@Hammer:~/Documents/repositories/generic-field-projection$ cargo +nightly update
    Updating git repository `https://github.com/RustyYato/typsy`
    Updating crates.io index
cfkaran2@Hammer:~/Documents/repositories/generic-field-projection$ cargo +nightly build --release
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.58
   Compiling typsy v0.1.0 (https://github.com/RustyYato/typsy?branch=main#88dfe5d1)
   Compiling quote v1.0.8
   Compiling proc_macro_roids v0.7.0
   Compiling typsy-macros v0.1.0 (https://github.com/RustyYato/typsy?branch=main#88dfe5d1)
   Compiling gfp-derive v0.1.0 (/home/cfkaran2/Documents/repositories/generic-field-projection/derive)
error[E0277]: the trait bound `DebugTuple<'_, '_>: hlist::Access<Named<_, _>, _>` is not satisfied
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:10:10
   |
10 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
   |          ^^^^^ the trait `hlist::Access<Named<_, _>, _>` is not implemented for `DebugTuple<'_, '_>`
   |
   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0061]: this function takes 0 arguments but 1 argument was supplied
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:10:10
   |
10 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
   |          ^^^^^ expected 0 arguments
11 | pub struct Named<T, Name: 'static>(pub T, PhantomData<Name>);
   |                                    ----- supplied 1 argument
   |
note: associated function defined here
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:61:8
   |
61 |     fn field<N, T, Name: 'static>(&self) -> &T
   |        ^^^^^                      -----
   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0061]: this function takes 0 arguments but 1 argument was supplied
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:10:10
   |
10 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
   |          ^^^^^ expected 0 arguments
11 | pub struct Named<T, Name: 'static>(pub T, PhantomData<Name>);
   |                                           ----------------- supplied 1 argument
   |
note: associated function defined here
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:61:8
   |
61 |     fn field<N, T, Name: 'static>(&self) -> &T
   |        ^^^^^                      -----
   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `DebugTuple<'_, '_>: hlist::Access<Named<_, _>, _>` is not satisfied
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:12:10
   |
12 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
   |          ^^^^^ the trait `hlist::Access<Named<_, _>, _>` is not implemented for `DebugTuple<'_, '_>`
   |
   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0061]: this function takes 0 arguments but 1 argument was supplied
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:12:10
   |
12 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
   |          ^^^^^ expected 0 arguments
13 | pub struct Unnamed<T>(pub T);
   |                       ----- supplied 1 argument
   |
note: associated function defined here
  --> /home/cfkaran2/.cargo/git/checkouts/typsy-5331ad5c6aa205b5/88dfe5d/src/anon.rs:61:8
   |
61 |     fn field<N, T, Name: 'static>(&self) -> &T
   |        ^^^^^                      -----
   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0061, E0277.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `typsy`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Meta

lsb_release -a:
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

uname -a:
Linux Hammer 5.4.0-62-generic #70~18.04.1-Ubuntu SMP Tue Jan 12 17:18:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

rustc -vV:
rustc 1.49.0 (e1884a8e3 2020-12-29)
binary: rustc
commit-hash: e1884a8e3c3e813aada8254edfa120e85bf5ffca
commit-date: 2020-12-29
host: x86_64-unknown-linux-gnu
release: 1.49.0

cargo -vV:
cargo 1.49.0 (d00d64df9 2020-12-05)
release: 1.49.0
commit-hash: d00d64df9f803bf5bba8714ca498d8f9159d07f6
commit-date: 2020-12-05

rustc +beta -vV:
rustc 1.50.0-beta.6 (ea20aa255 2021-01-14)
binary: rustc
commit-hash: ea20aa255b54708fb6a86f3146244eb20d079513
commit-date: 2021-01-14
host: x86_64-unknown-linux-gnu
release: 1.50.0-beta.6

cargo +beta -vV:
cargo 1.50.0-beta (1a8df6a51 2021-01-12)
release: 1.50.0
commit-hash: 1a8df6a5196e4cad9a3956867e7e928f2bfaaba4
commit-date: 2021-01-12

rustc +nightly -vV:
rustc 1.51.0-nightly (4253153db 2021-01-17)
binary: rustc
commit-hash: 4253153db205251f72ea4493687a31e04a2a8ca0
commit-date: 2021-01-17
host: x86_64-unknown-linux-gnu
release: 1.51.0-nightly
LLVM version: 11.0.1

cargo +nightly -vV:
cargo 1.51.0-nightly (a73e5b7d5 2021-01-12)
release: 1.51.0
commit-hash: a73e5b7d567c3036b296fc6b33ed52c5edcd882e
commit-date: 2021-01-12
@ckaran ckaran added the bug Something isn't working label Jan 19, 2021
@RustyYato
Copy link
Owner

Looks like I broke something upstream in typsy, I'll get that fixed tommorow.

@RustyYato
Copy link
Owner

Update: it looks like something broke because of nightly changes. I previously had an older nightly, and that compiled fine. Updating rust broke it. sigh I supposed I signed up for this with nightly :(.

@RustyYato
Copy link
Owner

This is a bug with the current nightly, see rust-lang/rust#81211. I'll keep this issue open until that is resolved. I would revert back to an older nightly for now.

@ckaran
Copy link
Collaborator Author

ckaran commented Jan 20, 2021

😞

Eh, it is what it is. The point of nightly is to catch these kinds of bugs. Unfortunately, I stole all the time I could steal from my PhD. for at least a couple of days. Maybe once I have some more plots and stuff written up, I'll be able to come back and do more work on this project. I just need to be able to have 3-4 clones of me running around, so that I can get more work done!

@RustyYato
Copy link
Owner

RustyYato commented Jan 20, 2021

Actually, I just noticed we don't use typsy::anon (the only affected module), which is also guarded by the macros feature. I think we could just say default-features = false for the typsy dep and be on our way.

@ckaran
Copy link
Collaborator Author

ckaran commented Jan 20, 2021

Nice! I just merged master into examples_singly_linked_list, and it all compiles. As I have some down moments, I'll work on it. Assume that examples_singly_linked_list is half-broken at all times though, at least until I do a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants