axodotdev / axodotdev/axohtml

Latest Version Fails to compile

Open
#47 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
119
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/axodotdev/axohtml/blob/main/macros/src/html.rs#L203) [lines](https://github.com/axodotdev/axohtml/blob/main/macros/src/html.rs#L204) seem to be faulty. However after looking [here](https://doc.rust-lang.org/proc_macro/struct.LineColumn.html#fields), 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.