Skip to content

Commit 06eb7db

Browse files
committed
Fix some nits
1 parent ca0ebaa commit 06eb7db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/mir/mono.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ impl<'tcx> CodegenUnitNameBuilder<'tcx> {
534534
}
535535
}
536536

537-
/// See module-level docs on some contect for "mentioned" items.
537+
/// See module-level docs of [`rustc_monomorphize::collector`] on some contect for "mentioned" items.
538538
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, HashStable)]
539539
pub enum CollectionMode {
540540
/// Collect items that are used, i.e., actually needed for codegen.

compiler/rustc_monomorphize/src/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ impl<'tcx> MonoItems<'tcx> {
330330

331331
fn extend(&mut self, iter: impl IntoIterator<Item = Spanned<MonoItem<'tcx>>>) {
332332
for item in iter {
333-
self.push(item.clone());
333+
self.push(item);
334334
}
335335
}
336336

0 commit comments

Comments
 (0)