fix typo
This commit is contained in:
parent
f511c5ea4a
commit
f68323b28a
1 changed files with 2 additions and 2 deletions
|
|
@ -202,8 +202,8 @@ impl<'a, 'tcx> Visitor<'tcx> for UnsafetyChecker<'a, 'tcx> {
|
|||
self.source_info.span) {
|
||||
self.require_unsafe(
|
||||
"assignment to non-`Copy` union field",
|
||||
"the previous content of the field may be dropped, which \
|
||||
cause undefined behavior if the field was not properly \
|
||||
"the previous content of the field will be dropped, which \
|
||||
causes undefined behavior if the field was not properly \
|
||||
initialized")
|
||||
} else {
|
||||
// write to non-move union, safe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue