-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[tutorial] [cpu exceptions] code from the listing fails to compile #452
Comments
That's right. I've enforced that as I got inspired by your "testing" section.
Sorry for not checking if it was actually a "true error". |
Not sure why cargo has picked up a more recent version for me.
Any chance that some articles rely on a newer version of |
Cargo considers versions that only differ in the last component of the version number as compatible to each other. To ensure that you always have the latest bugfixes, cargo automatically uses the latest compatible version when you add a dependency. So even though you chose version 0.2.6, cargo choses version 0.2.7 because they should be compatible. This is only done for new dependencies, existing dependencies are locked down in the Cargo.lock file to ensure reproducible builds. They can be updated to the latest compatible version through The question is now: What is considered compatible and what is not? The convention used by the Rust project and most libraries is that new warnings are allowed between compatible versions. So in this case everything was done correctly, because the deprecation of the old name only leads to a new warning. I didn't update the post yet because people that already implemented the previous posts are locked to version By using TLDR: Using |
It truly does. |
Got a compiler error while trying out the code from listing.
The error is obvious to fix.
Still, it would be a better experience to have correct listings out of box.
P.S. My code has the
x86_64 = "0.2.6"
dependency as recommended in the previous articles.Commented on the blog site :
#450 (comment)
The text was updated successfully, but these errors were encountered: