Fix review comments

This commit is contained in:
bjorn3 2023-10-05 09:49:10 +00:00
parent 7f5af72e64
commit f0b5820fa5
2 changed files with 5 additions and 5 deletions

View File

@ -412,7 +412,7 @@ pub(crate) fn run_aot(
)
.0
}
CguReuse::PreLto => unreachable!(),
CguReuse::PreLto => unreachable!("LTO not yet supported"),
CguReuse::PostLto => {
concurrency_limiter.job_already_done();
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, cgu))

View File

@ -227,14 +227,14 @@ pub struct CguReuseTracker {
}
impl CguReuseTracker {
pub fn new() -> CguReuseTracker {
fn new() -> CguReuseTracker {
let data =
TrackerData { actual_reuse: Default::default(), expected_reuse: Default::default() };
CguReuseTracker { data: Some(data) }
}
pub fn new_disabled() -> CguReuseTracker {
fn new_disabled() -> CguReuseTracker {
CguReuseTracker { data: None }
}
@ -247,7 +247,7 @@ impl CguReuseTracker {
}
}
pub fn set_expectation(
fn set_expectation(
&mut self,
cgu_name: Symbol,
cgu_user_name: &str,
@ -265,7 +265,7 @@ impl CguReuseTracker {
}
}
pub fn check_expected_reuse(&self, sess: &Session) {
fn check_expected_reuse(&self, sess: &Session) {
if let Some(ref data) = self.data {
for (cgu_name, &(ref cgu_user_name, ref error_span, expected_reuse, comparison_kind)) in
&data.expected_reuse