-
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: cannot return value referencing local variable #82667
Comments
Reduced: use std::error::Error;
use std::fmt;
#[derive(Debug)]
pub enum IntervalError {
InvalidRange,
}
impl fmt::Display for IntervalError {
fn fmt(&self, _fmt: &mut fmt::Formatter) -> fmt::Result {
unimplemented!()
}
}
impl Error for IntervalError {}
#[derive(Debug)]
pub enum ModelError {
InvalidInterval(IntervalError),
}
impl ModelError {
pub fn description(&self) -> &str {
match *self {
ModelError::InvalidInterval(ref err) => match err {
ref otherwise => otherwise.description(),
},
}
}
} The type of Similar regressions were observed in #75180's crater run, but this particular repository failed to build on stable in that crater run. Something similar happened to another crate, and the issue was since fixed. It turned out to involve path dependencies, and this crate has one. In short, this is #81460, which has been declared acceptable breakage. Bisection points to #75180's rollup. @rustbot label -E-needs-mcve -E-needs-bisection |
as per the issue analysis (thanks @SNCPlay42 !), removing the prioritize label @rustbot label -I-prioritize |
Triage: Closing this as another instance of #81460, as mentioned above (#82667 (comment)). |
https://crater-reports.s3.amazonaws.com/beta-1.51-1/beta-2021-02-14/gh/bow.gtetools/log.txt regressed in the beta crater run. Unfortunately the span points into a quick_error macro call, so hard to say exactly whether this is caused by something wrong in the compiler code or just changes to inference or something like that.
Probably next steps are to bisect and/or get a MCVE of that crate.
The text was updated successfully, but these errors were encountered: