Skip to content

Correct internal BitvSet 0-padding, fixes #16542#16559

Merged
bors merged 1 commit intorust-lang:masterfrom
Gankra:bitv
Aug 18, 2014
Merged

Correct internal BitvSet 0-padding, fixes #16542#16559
bors merged 1 commit intorust-lang:masterfrom
Gankra:bitv

Conversation

@Gankra
Copy link
Copy Markdown
Contributor

@Gankra Gankra commented Aug 17, 2014

These were the only differing-size-based errors I noticed. Might be more.

@apoelstra
Copy link
Copy Markdown
Contributor

Clever fix! I like the use of chain.

@Gankra
Copy link
Copy Markdown
Contributor Author

Gankra commented Aug 17, 2014

:embarassed:

Fixing Eq doesn't change the behaviour of cmp, which is still inherited. Will patch asap.

@Gankra
Copy link
Copy Markdown
Contributor Author

Gankra commented Aug 17, 2014

Sorry about that :stillembarassed:

This is a simpler, more robust solution.

@apoelstra
Copy link
Copy Markdown
Contributor

One thing I notice here is that PartialOrd should define an ordering defined by set inclusion. (This is my intuition based on the type having Set in the name anyway.) This isn't a total ordering, so you should drop the implementation of Ord.

As mentioned on IRC, Ord is apparently also implemented for TreeMap with the same crazy semantics (lexicographical ordering of elements in sorted order, we think). So maybe this should be done in a separate change with discussion on Discourse.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can .take(n).skip(m) be replaced with .take(n - m)? It'd be a little clearer what's going on.

Edit: Never mind, I missed the .enumerate().

@apoelstra
Copy link
Copy Markdown
Contributor

Regarding the actual code, it looks correct to me.

bors added a commit that referenced this pull request Aug 18, 2014
These were the only differing-size-based errors I noticed. Might be more.
@bors bors closed this Aug 18, 2014
@bors bors merged commit 8c9bdda into rust-lang:master Aug 18, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 18, 2024
…nicola

Set documentation field in SCIP from doc comment

Previously, the documentation field was the same as the text shown to users when they hover over that symbol. The documentation should really just be the doc comment, and as of rust-lang#16179 the signature is already stored in the signatureDocumentation field.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 21, 2026
…ust-lang#16559)

Closes rust-lang/rust-clippy#16553

changelog: [`unnecessary_safety_comment`] fix FP on code blocks inside
inner docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants