Only check packed ADT.
This commit is contained in:
parent
1c5f1762b7
commit
15a68610dd
3 changed files with 8 additions and 6 deletions
|
@ -40,7 +40,7 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
fn is_within_packed<'tcx, L>(
|
||||
pub fn is_within_packed<'tcx, L>(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
local_decls: &L,
|
||||
place: Place<'tcx>,
|
||||
|
|
|
@ -5,7 +5,7 @@ mod check_validity_requirement;
|
|||
mod compare_types;
|
||||
mod type_name;
|
||||
|
||||
pub use self::alignment::is_disaligned;
|
||||
pub use self::alignment::{is_disaligned, is_within_packed};
|
||||
pub use self::check_validity_requirement::check_validity_requirement;
|
||||
pub use self::compare_types::{is_equal_up_to_subtyping, is_subtype};
|
||||
pub use self::type_name::type_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue