Skip to content

Latest Version Fails to compile #47

Description

@matveitolochko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions