-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Unable to compile syntex_syntax using Rust 1.41 #68729
Comments
It builds fine on 1.40. FWIW this is not the most up to date version, which is 0.59.1 and builds fine on 1.41. |
Hmm I hadn't noticed that syntex_syntax had been updated in that manner; I just saw that it has not been maintained in three years (see their readme) This problem is expected fallout from PR #65785 |
triage: P-low, with intent to close. Leaving nominated because I want to at least discuss 1. whether we need/want to collect data on instances of such breakage, and 2. whether we were too aggressive in deciding that going straight to an error without some mitigating mechanism was too aggressive. |
syntex_syntax was used in older versions of bindgen crate and is not maintained. So, this issue could be closed. However, this kind of known breaking changes should be declared in blog posts of rustlang update. |
Removing nomination label and closing. As I wrote on zulip:
|
It was not initially clear to me why, after changing `.filter(...).next()` to `.find(...)`, the borrow checker as of Rust 1.41.1 required me to inline `all.lines()` at this point : error[E0596]: cannot borrow `lines` as mutable, as it is not declared as mutable --> tyrga-bin/../build.rs:53:33 | 52 | let lines = all.lines(); | ----- help: consider changing this to be mutable: `mut lines` 53 | let wrote = lines | ^^^^^ cannot borrow as mutable error: aborting due to previous error For more information about this error, try `rustc --explain E0596`. but it [appears][0] that the new error is [expected][1], and that if I had been using `.find()` previously instead of `.filter(...).next()`, I would have seen a non-fatal "compat" lint under previous compiler versions, leading me in the same direction. [0]: rust-lang/rust#68729 [1]: rust-lang/rust#65785
I can reproduce this error in rust 1.73.0, there's any solution to this? |
This can repoduced on rust 1.76.0 as well. Is there a solution? We could attempt syntex_sytntax to an older version but I'm not sure that it'll solve the issue. |
Unfortunately, syntex_syntax is not maintained and is not compiled using rust 1.41:
The text was updated successfully, but these errors were encountered: