Rename Unsafe to Safety
This commit is contained in:
parent
2d89cee625
commit
6b46a919e1
115 changed files with 460 additions and 494 deletions
|
@ -17,7 +17,7 @@ use rustc_hir::{self as hir};
|
|||
use rustc_hir::{
|
||||
self, FnSig, ForeignItem, HirId, Item, ItemKind, TraitItem, CRATE_HIR_ID, CRATE_OWNER_ID,
|
||||
};
|
||||
use rustc_hir::{MethodKind, Target, Unsafety};
|
||||
use rustc_hir::{MethodKind, Safety, Target};
|
||||
use rustc_macros::LintDiagnostic;
|
||||
use rustc_middle::bug;
|
||||
use rustc_middle::hir::nested_filter;
|
||||
|
@ -2335,7 +2335,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
}),
|
||||
token_stream,
|
||||
false,
|
||||
Unsafety::Normal,
|
||||
Safety::Safe,
|
||||
Abi::Rust,
|
||||
);
|
||||
|
||||
|
@ -2362,7 +2362,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
cause.span = ty.span;
|
||||
}
|
||||
}
|
||||
TypeError::UnsafetyMismatch(_) => {
|
||||
TypeError::SafetyMismatch(_) => {
|
||||
// FIXME: Would be nice if we had a span here..
|
||||
}
|
||||
TypeError::AbiMismatch(_) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue