]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_transform/src/check_unsafety.rs
Spellchecking compiler comments
[rust.git] / compiler / rustc_mir_transform / src / check_unsafety.rs
index f8d0e448ce7d5a84ba70a9a9a7aeeb3b6a1085e9..f5d82315c4e38db79274477a6bb5494bcc66b3bd 100644 (file)
@@ -149,7 +149,7 @@ fn visit_place(&mut self, place: &Place<'tcx>, context: PlaceContext, _location:
             self.check_mut_borrowing_layout_constrained_field(*place, context.is_mutating_use());
         }
 
-        // Some checks below need the extra metainfo of the local declaration.
+        // Some checks below need the extra meta info of the local declaration.
         let decl = &self.body.local_decls[place.local];
 
         // Check the base local: it might be an unsafe-to-access static. We only check derefs of the
@@ -554,7 +554,6 @@ fn report_unused_unsafe(tcx: TyCtxt<'_>, kind: UnusedUnsafe, id: HirId) {
                     tcx.lint_level_at_node(UNSAFE_OP_IN_UNSAFE_FN, usage_lint_root);
                 assert_eq!(level, Level::Allow);
                 lint::explain_lint_level_source(
-                    tcx.sess,
                     UNSAFE_OP_IN_UNSAFE_FN,
                     Level::Allow,
                     source,