File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
tests/codegen-units/item-collection Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ impl Layout {
6565 }
6666 }
6767
68+ #[ inline]
6869 const fn is_size_align_valid ( size : usize , align : usize ) -> bool {
6970 let Some ( align) = Alignment :: new ( align) else { return false } ;
7071 if size > Self :: max_size_for_align ( align) {
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ pub fn foo2() -> Box<dyn TestTrait2> {
4747//~ MONO_ITEM fn std::alloc::Global::alloc_impl
4848//~ MONO_ITEM fn std::boxed::Box::<TestStruct2>::new
4949//~ MONO_ITEM fn std::alloc::Layout::from_size_align_unchecked::precondition_check
50+ //~ MONO_ITEM fn std::ptr::Alignment::new_unchecked::precondition_check
5051//~ MONO_ITEM fn std::ptr::NonNull::<T>::new_unchecked::precondition_check
5152
5253struct Counter {
You can’t perform that action at this time.
0 commit comments