-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tokio::test does not work with renamed crate (i.e. tokio02:::test) #2312
Comments
I believe this is related to rust-lang/rust#71259. Last I checked on nightly this was fixed, so it would be good to test that. |
I believe the underlying cause of this is actually rust-lang/rust#54363: there is currently no way for |
I took a first pass at implementing a However, I'm not sure that this option really makes any sense for these macros. As the documentation for the crate option in I think the best resolution for this is just to update the documentation for these macros to mention that renaming the |
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(package = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(crate = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(crate = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(crate = "crate")]` in unit tests. Sees rust-lang/cargo#5653. Fixes tokio-rs#2312.
This also enables `#[crate::test(crate = "crate")]` in unit tests. See: rust-lang/cargo#5653 Fixes: #2312
Version
Long story short, we have:
Description
If we do:
We get an error:
If we do:
Everything works.
It's a small annoyance, and there's a workaround, but still...
The text was updated successfully, but these errors were encountered: