Rename Unsafe to Safety
This commit is contained in:
parent
2d89cee625
commit
6b46a919e1
115 changed files with 460 additions and 494 deletions
|
@ -915,8 +915,8 @@ pub enum Mutability {
|
|||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Safety {
|
||||
Safe,
|
||||
Unsafe,
|
||||
Normal,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
use super::{
|
||||
mir::Safety,
|
||||
mir::{Body, Mutability},
|
||||
mir::{Body, Mutability, Safety},
|
||||
with, DefId, Error, Symbol,
|
||||
};
|
||||
use crate::abi::Layout;
|
||||
|
@ -909,7 +908,7 @@ pub type PolyFnSig = Binder<FnSig>;
|
|||
pub struct FnSig {
|
||||
pub inputs_and_output: Vec<Ty>,
|
||||
pub c_variadic: bool,
|
||||
pub unsafety: Safety,
|
||||
pub safety: Safety,
|
||||
pub abi: Abi,
|
||||
}
|
||||
|
||||
|
@ -1200,7 +1199,7 @@ pub enum TraitSpecializationKind {
|
|||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct TraitDecl {
|
||||
pub def_id: TraitDef,
|
||||
pub unsafety: Safety,
|
||||
pub safety: Safety,
|
||||
pub paren_sugar: bool,
|
||||
pub has_auto_impl: bool,
|
||||
pub is_marker: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue