-
Notifications
You must be signed in to change notification settings - Fork 831
Add docs re Rust 1.51.1 #1122
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
Add docs re Rust 1.51.1 #1122
Conversation
src/util/amount.rs
Outdated
@@ -336,7 +336,7 @@ fn dec_width(mut num: u64) -> usize { | |||
width | |||
} | |||
|
|||
// NIH due to MSRV, impl copied from `core` | |||
// NIH due to MSRV, impl copied from `core::unsigned_abs` (Rust 1.51.1). |
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.
If you want to avoid confusion of people who don't know the method at all prefer the actual full path :) core::i8::unsigned_abs
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.
If you're going to edit the line anyway, I'd also like it to say "introduced in Rust 1.51.1". As written it kinda looks like we copied the code from Rust 1.51.1, which might be good to know but doesn't seem particularly useful :)
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.
Yep and yep, sure thing. Thanks
05a9522
to
7f498ee
Compare
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.
ACK 7f498ee
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.
ACK 7f498ee
7f498ee Add docs re Rust 1.51.1 (Tobin C. Harding) Pull request description: After auditing the code base for 'msrv' the only remaining mention (excl. md files) is on `unsigned_abs`. Add docs to save the next guy looking up what version of Rust introduced `unsigned_abs`. (I also added an item to the [msrv tracking issue](rust-bitcoin/rust-bitcoin#1060).) ACKs for top commit: Kixunil: ACK 7f498ee apoelstra: ACK 7f498ee Tree-SHA512: 9b4bdca09d3f7ac1c0584f4eb5207983a064cfe81ed26952d00396b2e0019ef40eee192b7f09d36c68b8c4e1f8de9cac2d1f3ee0946626bae089b46fe38704ab
After auditing the code base for 'msrv' the only remaining mention (excl. md files) is on
unsigned_abs
.Add docs to save the next guy looking up what version of Rust introduced
unsigned_abs
. (I also added an item to the msrv tracking issue.)