-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Diesel proc-macro use-after-free on nightly #8929
Comments
Duplicate of the previous two issues, probably. |
Although in #8925 the 2021-05-11 nightly worked for me. |
I'm having the same error message on nightly in my project attribute macro. The nightly version is 2021-06-04. |
Hopefully this helps someone out- I just confirmed presence of the issue on rust-toolchain |
Also occurs with |
Presumably fixed in #9550 |
What I expected to happen
A completely valid and fine Diesel 1.4 table definition, as it compiles just fine on any version:
where schema can be anything. There can be any fields in the struct as well.
What actually happened
A proc-macro panicked for use-after-free:
macro-error: proc macro returned error: proc-macro panicked: use-after-free in `proc_macro` handle
.Note that this only affects the derive macros; every other warning and whatnot still shows up, such as an unused lifetime on the struct if you define it to have
<'a>
.Regression
This is only broken on
cargo 1.54.0-nightly (2021-05-11)
. When tested oncargo 1.52.0 (69767412a 2021-04-21)
andcargo 1.53.0-beta (4369396ce 2021-04-27)
, all is well.cargo build
andcargo check
both work as expected on all environments.Environment
Side-note: This is some awesome software. Thank you for your time in developing this 😃.
The text was updated successfully, but these errors were encountered: