-
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
Error running cargo fix --edition --allow-dirty on nightly with const generics #90350
Comments
Thanks for the report. Is the code you ran against publicly available, or can you provide a reproduction? Presumably you are migrating to the 2021 edition? |
Unfortunately the code is not available. I haven't tried a reproduction, but I will in a couple of hours. |
Found a simple (enough) reproduction case |
Thanks @NeverGivinUp ! struct B<const GRAPH_ID: usize>;
pub struct C<const GRAPH_ID: usize> {
node_list: Vec<B<GRAPH_ID>>,
}
impl<const GRAPH_ID: usize> C<GRAPH_ID> {
pub fn rem(mut self) {
let _ = || self.node_list.remove(0);
}
}
fn main() {} |
This has regressed in 05044c2 |
Thanks for the report, I'll try take a look today/tomorrow. Looking at the error, this might get fixed once #90218 lands though. |
It looks like that this is a dup of the linked issue (#90024).
Looks like it's covered by |
I can confirm this should now be fixed by #90218. |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: