about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-29 08:46:11 +0900
committerGitHub <noreply@github.com>2021-06-29 08:46:11 +0900
commit5028581a1f792837c8db299f823f628d92c304be (patch)
tree1b8d0f9d04f7b05e3615f416a94f0c0b78642bab /library/std/src/sys/unix/stack_overflow.rs
parentc9ac096bcd5ebb8ebfe296090ba73ab4c65ecbe0 (diff)
parentbf0da4418f061b74b0f3f9e2a2b1310385896355 (diff)
downloadrust-5028581a1f792837c8db299f823f628d92c304be.tar.gz
rust-5028581a1f792837c8db299f823f628d92c304be.zip
Rollup merge of #86657 - jam1garner:future_prelude_false_positive, r=nikomatsakis
Fix `future_prelude_collision` false positive

Fixes #86633

The lint for checking if method resolution of methods named `try_into` will fail in 2021 edition previously would fire on all inherent methods, however for inherent methods that consume `self`, this takes priority over `TryInto::try_into` due to being inherent, while trait method and methods that take `&self` or `&mut self` don't take priority, and thus aren't affected by this false positive.

This fix is rather simple: simply checking if the inherent method doesn't auto-deref or auto-ref (and thus takes `self`) and if so, prevents the lint from firing.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions