Skip to content

Commit f0b5820

Browse files
committed
Fix review comments
1 parent 7f5af72 commit f0b5820

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

compiler/rustc_codegen_cranelift/src/driver/aot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ pub(crate) fn run_aot(
412412
)
413413
.0
414414
}
415-
CguReuse::PreLto => unreachable!(),
415+
CguReuse::PreLto => unreachable!("LTO not yet supported"),
416416
CguReuse::PostLto => {
417417
concurrency_limiter.job_already_done();
418418
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, cgu))

compiler/rustc_codegen_ssa/src/assert_module_sources.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ pub struct CguReuseTracker {
227227
}
228228

229229
impl CguReuseTracker {
230-
pub fn new() -> CguReuseTracker {
230+
fn new() -> CguReuseTracker {
231231
let data =
232232
TrackerData { actual_reuse: Default::default(), expected_reuse: Default::default() };
233233

234234
CguReuseTracker { data: Some(data) }
235235
}
236236

237-
pub fn new_disabled() -> CguReuseTracker {
237+
fn new_disabled() -> CguReuseTracker {
238238
CguReuseTracker { data: None }
239239
}
240240

@@ -247,7 +247,7 @@ impl CguReuseTracker {
247247
}
248248
}
249249

250-
pub fn set_expectation(
250+
fn set_expectation(
251251
&mut self,
252252
cgu_name: Symbol,
253253
cgu_user_name: &str,
@@ -265,7 +265,7 @@ impl CguReuseTracker {
265265
}
266266
}
267267

268-
pub fn check_expected_reuse(&self, sess: &Session) {
268+
fn check_expected_reuse(&self, sess: &Session) {
269269
if let Some(ref data) = self.data {
270270
for (cgu_name, &(ref cgu_user_name, ref error_span, expected_reuse, comparison_kind)) in
271271
&data.expected_reuse

0 commit comments

Comments
 (0)