Expand coverage to include recent changes#2364
Conversation
f80c2e1 to
dcf5b91
Compare
skade
left a comment
There was a problem hiding this comment.
Left relevant review comments.
| // We need to do a truly cursed thing here since there are no situations in public API where | ||
| // we can conjure ourselves a `ParseIntError` with a `NotAPowerOfTwo` in it. |
There was a problem hiding this comment.
if this is really the case then shouldn't we instead mark that code as unreachable?
There was a problem hiding this comment.
There are ways to create IntErrorKind::PowerOfTwo, but no ways to create a ParseIntError holding a IntErrorKind::PowerOfTwo I can find.
Are you suggesting replacing
ferrocene/library/core/src/num/error.rs
Line 158 in ecfd149
Do you consider that option better than my conjuration? 😅
There was a problem hiding this comment.
exactly, yes, mark specifically the Display impl with unreachable.
i think it's weird for upstream to reuse the type between different APIs like this, but that's another problem ...
There was a problem hiding this comment.
I'm rather unsure about making a load bearing change to the core library here.
There was a problem hiding this comment.
i was imagining something like this:
ferrocene/library/core/src/num/imp/flt2dec/strategy/dragon.rs
Lines 274 to 275 in 68d8a86
2365: [1.95] prevalidated fix backport r=Hoverbear a=Hoverbear Backports #2336 and #2364 as well as [`a96a73b`](a96a73b) which is new. Co-authored-by: Jynn Nelson <[email protected]> Co-authored-by: Urhengulas <[email protected]> Co-authored-by: Ana Hobden <[email protected]>
2365: [1.95] prevalidated fix backport r=Hoverbear a=Hoverbear Backports #2336 and #2364 as well as [`a96a73b`](a96a73b) which is new. Co-authored-by: Jynn Nelson <[email protected]> Co-authored-by: Urhengulas <[email protected]> Co-authored-by: Ana Hobden <[email protected]>
…or::Iterator>::count
…:traits::iterator::Iterator>::try_fold
…rRefSpec>::spec_try_rfold
…ts::iterator::Iterator>::try_fold
…or::Iterator>::next more
…inimum_number_nsz_f32
…[u8]>::eq_ignore_ascii_case_chunks
0837260 to
ab05886
Compare
ab05886 to
f303b43
Compare
f303b43 to
3721072
Compare
jyn514
left a comment
There was a problem hiding this comment.
thanks for working on this, and sorry i forgot about it for so long.
bors merge
|
bors r- want to merge everything into 1.97 before we queue things up for main |
|
Canceled. |
Expand coverage to include recent changes #2336 fixed a number of bugs in the `#[ferrocene::prevalidated]` lint, this handles coverage coming from those changes. Co-authored-by: Ana Hobden <[email protected]> Ferrocene-backport-of: #2364 Ferrocene-backported-commits: 3721072 5808810 fdb51f2 f9dff13 5052acc a9304f9 1951cfa 9d1dbcd 047f112 45d607b 0188b6c b9b6949 04c0639 d835001 a0fa6f0 9996cb7 904d211 b79e758 bd9d73d 78f6a9b bc5cb1f c92b3ec 5fa8097 733a418
Expand coverage to include recent changes #2336 fixed a number of bugs in the `#[ferrocene::prevalidated]` lint, this handles coverage coming from those changes. Co-authored-by: Ana Hobden <[email protected]> Ferrocene-backport-of: #2364 Ferrocene-backported-commits: 3721072 5808810 fdb51f2 f9dff13 5052acc a9304f9 1951cfa 9d1dbcd 047f112 45d607b 0188b6c b9b6949 04c0639 d835001 a0fa6f0 9996cb7 904d211 b79e758 bd9d73d 78f6a9b bc5cb1f c92b3ec 5fa8097 733a418
2487: Backport to `release/1.97` r=jyn514 a=ferrocene-automations[bot] This PR backports the following PRs to the `release/1.97` branch: * #2429 * #2433 * #2364 (currently unmerged) * #2475 Note that the automation failed to backport some PRs automatically. Check out the [backport:manual](https://github.com/ferrocene/ferrocene/pulls?q=is%3Apr+label%3Abackport%3Amanual) for a list of them. Co-authored-by: Urhengulas <[email protected]> Co-authored-by: Felix Gilcher <[email protected]> Co-authored-by: Ana Hobden <[email protected]>
2487: Backport to `release/1.97` r=jyn514 a=ferrocene-automations[bot] This PR backports the following PRs to the `release/1.97` branch: * #2429 * #2433 * #2364 (currently unmerged) * #2475 Note that the automation failed to backport some PRs automatically. Check out the [backport:manual](https://github.com/ferrocene/ferrocene/pulls?q=is%3Apr+label%3Abackport%3Amanual) for a list of them. Co-authored-by: Urhengulas <[email protected]> Co-authored-by: Felix Gilcher <[email protected]> Co-authored-by: Ana Hobden <[email protected]>
2487: Backport to `release/1.97` r=jyn514 a=ferrocene-automations[bot] This PR backports the following PRs to the `release/1.97` branch: * #2429 * #2433 * #2364 (currently unmerged) * #2475 Note that the automation failed to backport some PRs automatically. Check out the [backport:manual](https://github.com/ferrocene/ferrocene/pulls?q=is%3Apr+label%3Abackport%3Amanual) for a list of them. Co-authored-by: Urhengulas <[email protected]> Co-authored-by: Felix Gilcher <[email protected]> Co-authored-by: Ana Hobden <[email protected]>
#2336 fixed a number of bugs in the
#[ferrocene::prevalidated]lint, this handles coverage coming from those changes.