-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
cannot borrow as mutable because it is also borrowed as immutable (likely regression) #60136
Comments
cc #59500 This can be fixed by using |
@matthewjasper can you elaborate a bit on how #59500 is related here? |
Would be great to have a bisection and/or reduction of the reproducer. Cursory look at the contents of the web-dom crate indicates that it should be fairly easy to make a reproducer here. |
Reduction: playground struct CustomElements {
processor: Box<fn(&mut CustomElements)>,
}
fn main() {
move |controller: &mut CustomElements| {
(controller.processor)(controller);
};
} edit Bisection points to |
OK, wait, I didn't read #59500 closely enough. I can see why this regression occurred. We didn't used to consider |
The workaround is to change to |
Closing, as the code breakage described here was an expected consequence of teh |
Discussed at the compiler meeting today. We are closing this as a permissible regression -- as I noted earlier, adding the impl caused the |
From a crater run:
crate(s) affected: webcomponent (0.3)
author: @richardanaya
log: https://crater-reports.s3.amazonaws.com/beta-1.35-1/beta-2019-04-11/reg/webcomponent-0.3.3/log.txt
The text was updated successfully, but these errors were encountered: