Skip to content

Commit 7941cba

Browse files
committed
Remove some commented out code
1 parent 449f95b commit 7941cba

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

example/mini_core_hello_world.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ fn main() {
171171

172172
assert_eq!(slice_ptr as usize % 4, 0);
173173

174-
//return;
175-
176174
unsafe {
177175
printf("Hello %s\n\0" as *const str as *const i8, "printf\0" as *const str as *const i8);
178176

src/constant.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ impl ConstantCx {
2828
}
2929

3030
pub(crate) fn finalize(mut self, tcx: TyCtxt<'_>, module: &mut dyn Module) {
31-
//println!("todo {:?}", self.todo);
3231
define_all_allocs(tcx, module, &mut self);
33-
//println!("done {:?}", self.done);
3432
self.done.clear();
3533
}
3634
}
@@ -358,8 +356,6 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant
358356
(data_id, alloc, None)
359357
}
360358
TodoItem::Static(def_id) => {
361-
//println!("static {:?}", def_id);
362-
363359
let section_name = tcx.codegen_fn_attrs(def_id).link_section;
364360

365361
let alloc = tcx.eval_static_initializer(def_id).unwrap();
@@ -369,7 +365,6 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant
369365
}
370366
};
371367

372-
//("data_id {}", data_id);
373368
if cx.done.contains(&data_id) {
374369
continue;
375370
}

0 commit comments

Comments
 (0)