Rustfmt
This commit is contained in:
parent
3183b44a1e
commit
1fcae03369
287 changed files with 5888 additions and 4608 deletions
|
@ -162,11 +162,12 @@ impl<'tcx> MoveCheckVisitor<'tcx> {
|
|||
// but correct span? This would make the lint at least accept crate-level lint attributes.
|
||||
return;
|
||||
};
|
||||
self.tcx.emit_node_span_lint(LARGE_ASSIGNMENTS, lint_root, span, LargeAssignmentsLint {
|
||||
self.tcx.emit_node_span_lint(
|
||||
LARGE_ASSIGNMENTS,
|
||||
lint_root,
|
||||
span,
|
||||
size: too_large_size.bytes(),
|
||||
limit: limit as u64,
|
||||
});
|
||||
LargeAssignmentsLint { span, size: too_large_size.bytes(), limit: limit as u64 },
|
||||
);
|
||||
self.move_size_spans.push(span);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -268,12 +268,8 @@ where
|
|||
}
|
||||
let size_estimate = mono_item.size_estimate(cx.tcx);
|
||||
|
||||
cgu.items_mut().insert(mono_item, MonoItemData {
|
||||
inlined: false,
|
||||
linkage,
|
||||
visibility,
|
||||
size_estimate,
|
||||
});
|
||||
cgu.items_mut()
|
||||
.insert(mono_item, MonoItemData { inlined: false, linkage, visibility, size_estimate });
|
||||
|
||||
// Get all inlined items that are reachable from `mono_item` without
|
||||
// going via another root item. This includes drop-glue, functions from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue