-
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
use a more descriptive name #107455
use a more descriptive name #107455
Conversation
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
// Estimate the size of a codegen unit as (approximately) the number of MIR | ||
// statements it corresponds to. | ||
self.size_estimate = Some(self.items.keys().map(|mi| mi.size_estimate(tcx)).sum()); | ||
} | ||
|
||
#[inline] | ||
pub fn size_estimate(&self) -> usize { | ||
// Should only be called if `estimate_size` has previously been called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to a doc comment on the method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mejrs I done it
@bors r+ rollup |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#107125 (Add and use expect methods to hir.) - rust-lang#107172 (Reimplement NormalizeArrayLen based on SsaLocals) - rust-lang#107177 (Keep all theme-updating logic together) - rust-lang#107424 (Make Vec::clone_from and slice::clone_into share the same code) - rust-lang#107455 (use a more descriptive name) - rust-lang#107465 (`has_allow_dead_code_or_lang_attr` micro refactor) - rust-lang#107469 (Change turbofish context link to an archive link) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I found it hard to distinguish between the two method names.
Also, the comment just repeats the
expect
string.