We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In the following code from rust/compiler/rustc_index/src/bit_set.rs, self.words should resize with from.words.len() instead of from.domain_size.
fn clone_from(&mut self, from: &Self) { if self.domain_size != from.domain_size { self.words.resize(from.domain_size, 0); self.domain_size = from.domain_size; } self.words.copy_from_slice(&from.words); }
Otherwise, this function will panic when calling 'copy_from_slice' because of the mismatched slice length.
The text was updated successfully, but these errors were encountered:
34805f3
Successfully merging a pull request may close this issue.
In the following code from rust/compiler/rustc_index/src/bit_set.rs, self.words should resize with from.words.len() instead of from.domain_size.
Otherwise, this function will panic when calling 'copy_from_slice' because of the mismatched slice length.
The text was updated successfully, but these errors were encountered: