-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Type parameter Self/#0
out of range when substituting
#9781
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
Comments
The post fix intelligence test for resource is currently failing due to a known bug. This test is being added with the "ignore" macro so that others can use it. The three regression tests should currently pass and provide a baseline for testing in the future. They can (and likely should) be expanded to account for multiple scenarios. Finally, fix clippy lints due to Rust 1.65's release. Disable the "all-targets" flag temporarily until the following issue is resolved: rust-lang/rust-clippy#9781 Signed-off-by: Nick Gerace <[email protected]> Co-authored-by: Fletcher Nichol <[email protected]>
The post fix intelligence test for resource is currently failing due to a known bug. This test is being added with the "ignore" macro so that others can use it. The three regression tests should currently pass and provide a baseline for testing in the future. They can (and likely should) be expanded to account for multiple scenarios. Finally, fix clippy lints due to Rust 1.65's release. Disable the "all-targets" flag temporarily until the following issue is resolved: rust-lang/rust-clippy#9781 Signed-off-by: Nick Gerace <[email protected]> Co-authored-by: Fletcher Nichol <[email protected]>
Seeing this as well. Here's a full backtrace
|
Ok I got a minimal reproduction of this issue. With tokio version 1 (features = full): async fn str_as_ref(a: impl AsRef<str>) {}
#[tokio::main]
async fn main() {
str_as_ref("b".to_string()).await;
} gives me:
Here's the Cargo.toml: [package]
name = "to_owned"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "1", features = ["full"] } Edited to narrow down the issue further. Definitely only happens with the Clippy version is:
What's interesting as well is that running the nightly clippy (
|
Also hit this (see linked PR), I think invoking a |
I tried adding a test on latest |
Duplicate of #9504 The fix for this hasn't made it to stable yet. From a quick check, it should be in |
Using
rustup
onstable-aarch64-apple-darwin
, I upgraded to Rust 1.65. Upon runningcargo clean
and fixing new clippy warnings (there were many, so it would be may to pin down a trigger, if applicable), I ran the following commands:The last command produces the following error:
Since the message recommended that I file a bug... here I am!
EDIT 1: the
--all-targets
flag appears to be the trigger.EDIT 2: the issue appears to happen on both Linux (
unknown-gnu
)amd64
and macOSaarch64
systems using the corresponding their corresponding stable toolchains.The text was updated successfully, but these errors were encountered: