-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
regression: AsRef inference breakage #82665
Comments
I've tried bisecting this issue (if it helps): searched nightlies: from nightly-2021-01-01 to nightly-2021-03-03 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2021-01-01 somewhere in this rollup #81355 |
Hm, none of the PRs in that rollup should affect AsRef for String, which is what all these regressions are about. There's only one trait implementation added in that rollup: |
This shows the regression (playground): use std::io;
pub fn foo() -> io::Result<i32> {
Err(io::Error::new(
io::ErrorKind::Other,
format!("Error!").as_ref(),
))
}
fn main() {} And yes, confirmed that #75180 is the cause. |
It looks like those were expected regressions (see #75180 (comment)). |
Triage: Close this issue as an acceptable regression, we mentioned it in #75180 (comment) and consider it acceptable through FCP. |
I'm not quickly finding the PR which introduced the new impls, but it looks like some
AsRef
impls were added in 1.51, and those are causing breakage as determined through beta crater. Usually we don't do anything here, but would be good to at least ping authors.The text was updated successfully, but these errors were encountered: