-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-bugCategory: This is a bug.Category: This is a bug.M-macrosModule: macros in the main Tokio crateModule: macros in the main Tokio crate
Description
For example, this compiles even though I haven't imported the RotatorSelect trait anywhere:
#[tokio::main]
async fn main() {
tokio::join!(async {
fn foo(_: impl RotatorSelect) {}
});
}Looking at the output of cargo expand on that example, I think the full set of symbols that gets leaked into the caller's scope is:
use ::tokio::macros::support::{
maybe_done, poll_fn, Future, Pin, RotatorSelect,
};
use ::tokio::macros::support::Poll::{Ready, Pending};Metadata
Metadata
Assignees
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-bugCategory: This is a bug.Category: This is a bug.M-macrosModule: macros in the main Tokio crateModule: macros in the main Tokio crate