From f68323b28adf9b5ac1d85abe48915bc189aed813 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 11 Jul 2018 11:58:10 +0200 Subject: [PATCH] fix typo --- src/librustc_mir/transform/check_unsafety.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_mir/transform/check_unsafety.rs b/src/librustc_mir/transform/check_unsafety.rs index 737f30f7d87..7768e96d036 100644 --- a/src/librustc_mir/transform/check_unsafety.rs +++ b/src/librustc_mir/transform/check_unsafety.rs @@ -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