Skip to content

Char::from_digit signature fix - #16316

Merged
bors merged 1 commit into
rust-lang:masterfrom
forticulous:char-Fix
Aug 7, 2014
Merged

bors merged 1 commit into
rust-lang:masterfrom
forticulous:char-Fix

Conversation

@forticulous

Copy link
Copy Markdown

Signature for from_digit in Char wasn't using Self so there was no way to use this method

bors added a commit that referenced this pull request Aug 7, 2014
Signature for `from_digit` in `Char` wasn't using `Self` so there was no way to use this method
@bors bors closed this Aug 7, 2014
@bors
bors merged commit ef03363 into rust-lang:master Aug 7, 2014
@forticulous
forticulous deleted the char-Fix branch August 7, 2014 14:35
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 22, 2026
When linting code generated by proc macros (like `derivative`), the
`elidable_lifetime_names` lint can produce fix suggestions with
overlapping spans. This causes `cargo clippy --fix` to fail with
"cannot replace slice of data that was already replaced".

This change adds `is_from_proc_macro` checks to the three lint entry
points (`check_item`, `check_impl_item`, `check_trait_item`) to skip
linting proc-macro generated code entirely.

Fixes rust-lang#16316
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.

3 participants