-
Notifications
You must be signed in to change notification settings - Fork 252
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
Maintain compatibility with Rust 1.25 #137
Maintain compatibility with Rust 1.25 #137
Conversation
Implementation is incorrect for detecting rust features, shall find another way. Pulled in the |
I think that would be a good idea. |
The current latest (0.3.11)` is not compatible with Rust 1.18.0. Pending <rust-lang/backtrace-rs#137>
Ah, 1.18.0 built on windows, but not linux. I'm off for tonight, but feel free to add to the branch if it's urgent. |
This is unfortunately a bit too much code duplication for me to be comfortable maintaining purely for the reason of supporting older compilers. Is there a compelling reason to support 1.18.0? |
Hm, besides "make the |
I've honestly lost a lot of my own motivation for tracking older Rust releases. It is too much work, and in particular, is completely intractable without community consensus on what to do. I think we should at the very minimum put a specific Rust version in our CI config so that folks can at least know which version is supported though. |
|
Heh to add to what @BurntSushi says I've also lost motivation to even list the minimum Rust version in CI, all it ends up doing for me is making it annoying to land PRs that bump it (as you always forget about it) and also confusing contributors who aren't typically aware that it can be bumped. It looks like the main duplication here is happening at the rust 1.25.0 boundary, so it seems fine to me to land whatever's necessary to support 1.25.0+ as it likely doesn't involve much duplication |
Oh dang I missed the |
9c54a2f
to
e50b0dc
Compare
Okay, so with 1.25.0 as the minimum, things are much easier! |
src/symbolize/dbghelp.rs
Outdated
use core::mem; | ||
use core::slice; | ||
#[cfg(not(feature = "std"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm what's going on here? Was this something we moved from std to core in the last few versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, based on issue rust-lang/rust#49319 and the corresponding PR: rust-lang/rust#49698 which happened on 2018-04-12, which is just after Rust 1.26 was released.
Looks great to me! Just one thing I'm curious about, and it also looks like CI may be failing for 1.25.0? (I don't think std has |
Yeap, took longer than I'd've liked to figure out that |
So, the
Road from here, things that I'd consider unfeasible (maintenance cost, sanity):
I've removed it from the 1.25 CI tests. |
The latest backtrace release isn't compatible with 1.26.2. A patch for this is underway in: rust-lang/backtrace-rs#137 Though for now, let's just restrict the version since we should be bumping our minimum rustc requirement soon-ish anyway.
No need to test exhaustiveness, we can rely on that through bug reports!
Thanks so much! |
The latest backtrace release isn't compatible with 1.26.2. A patch for this is underway in: rust-lang/backtrace-rs#137 Though for now, let's just restrict the version since we should be bumping our minimum rustc requirement soon-ish anyway. Closes: #1713 Approved by: cgwalters
Issue #135
Not sure if you want to also include a CI config for Rust 1.18