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

Latest Version Fails to compile #47

Open
AtomicGamer9523 opened this issue Jul 27, 2023 · 1 comment
Open

Latest Version Fails to compile #47

AtomicGamer9523 opened this issue Jul 27, 2023 · 1 comment

Comments

@AtomicGamer9523
Copy link

Latest version fails to compile:

error[E0615]: attempted to take value of method `line` on type `proc_macro::Span`
   --> C:\Users\drunk\.cargo\registry\src\index.crates.io-6f17d22bba15001f\axohtml-macros-0.5.0\src\html.rs:203:53
    |
203 | ...                   span.unstable().start().line,
    |                                               ^^^^ method, not a field
    |
help: use parentheses to call the method
    |
203 |                             span.unstable().start().line(),
    |                                                         ++

error[E0615]: attempted to take value of method `column` on type `proc_macro::Span`
   --> C:\Users\drunk\.cargo\registry\src\index.crates.io-6f17d22bba15001f\axohtml-macros-0.5.0\src\html.rs:204:53
    |
204 | ...                   span.unstable().start().column
    |                                               ^^^^^^ method, not a field
    |
help: use parentheses to call the method
    |
204 |                             span.unstable().start().column()
    |                                                           ++

For more information about this error, try `rustc --explain E0615`.
error: could not compile `axohtml-macros` (lib) due to 2 previous errors

For some reason these lines seem to be faulty. However after looking here, I can't seem to figure out why. I have tried cleaning and rebuilding.

Rustc:

rustc 1.73.0-nightly (da6b55cc5 2023-07-17)
binary: rustc
commit-hash: da6b55cc5eaf76ed6acb7dc2f7d611e32af7c9a7
commit-date: 2023-07-17
host: x86_64-pc-windows-msvc
release: 1.73.0-nightly
LLVM version: 16.0.5
@AtomicGamer9523 AtomicGamer9523 changed the title Fails to compile Latest Version Fails to compile Jul 27, 2023
@boydjohnson
Copy link

i got the same thing with the nightly compiler. It looks like a nightly vs stable issue, because stable rustc compiles.

stable-aarch64-apple-darwin unchanged - rustc 1.78.0 (9b00956e5 2024-04-29) ---- compiles

It looks like the github actions only use stable.

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