Skip to content

libstd: Change Path::new to Path::init.#10697

Merged
bors merged 1 commit intorust-lang:masterfrom
pcwalton:path-new
Nov 29, 2013
Merged

libstd: Change Path::new to Path::init.#10697
bors merged 1 commit intorust-lang:masterfrom
pcwalton:path-new

Conversation

@pcwalton
Copy link
Contributor

r+

(carrying over from @alexcrichton's review)

@rustlango
Copy link

Need to sed from Path::new to Path::init in the benchmark tests.
Sorry.. :(

bors added a commit that referenced this pull request Nov 29, 2013
@bors bors closed this Nov 29, 2013
@bors bors merged commit c54427d into rust-lang:master Nov 29, 2013
chris-morgan added a commit to chris-morgan/rust-http that referenced this pull request Nov 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 5, 2023
Ignore `shadow` warns in code from macro expansions

This PR fixes rust-lang/rust-clippy#9757

I am in doubt if just looking for `pat.span.from_expansion()` would be sufficient instead of looking for both `pat.span.desugaring_kind().is_some()` or `pat.span.from_expansion()`. The tests (including the new one) passes if I leave the only `if pat.span.from_expansion()`. Any feedbacks?

Also, this is my first PR here, sorry for anything and thanks for the patience!

changelog: [`shadow_same`, `shadow_reuse`, `shadow_unrelated`]: avoiding warns in macro-generated code
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