Using await on an internal future makes private type trigger missing_debug_implementations lint #54239
Labels
A-async-await
Area: Async & Await
A-coroutines
Area: Coroutines
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground: https://play.rust-lang.org/?gist=0baad2fb680123d124806d6269c15c43&version=nightly&mode=debug&edition=2018
The
DontLookAtMe
struct isn't public, so it normally shouldn't trigger themissing_debug_implementations
lint. But onceawait!
is used on a future that happens to be holding the field somewhere inside, it trips the lint:The text was updated successfully, but these errors were encountered: