/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 109 unsafe { RawNonZeroPid::new_unchecked(1) }, 145 unsafe { Self::from_raw_nonzero(RawNonZeroPid::new_unchecked(id as _)) } in from_child()
|
/third_party/rust/crates/pin-utils/src/ |
H A D | stack_pin.rs | 22 $crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
|
/third_party/rust/crates/once_cell/src/ |
H A D | race.rs | 104 unsafe { NonZeroUsize::new_unchecked(val) } in get_or_try_init() 173 unsafe { NonZeroUsize::new_unchecked(if value { 1 } else { 2 }) } in to_usize()
|
/third_party/rust/crates/rustix/src/backend/libc/termios/ |
H A D | syscalls.rs | 35 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid))) 84 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)))
|
/third_party/rust/crates/cxx/src/ |
H A D | rust_slice.rs | 43 unsafe { mem::transmute::<NonNull<[()]>, RustSlice>(NonNull::new_unchecked(ptr)) }
|
H A D | cxx_vector.rs | 109 Pin::new_unchecked(&mut *ptr) in index_unchecked_mut() 275 Some(Pin::new_unchecked(&mut *ptr)) in next()
|
H A D | cxx_string.rs | 300 Pin::new_unchecked(&mut *this.as_mut_ptr()) in init()
|
H A D | unique_ptr.rs | 67 Some(Pin::new_unchecked(mut_reference)) in as_mut()
|
/third_party/rust/crates/either/src/ |
H A D | lib.rs | 263 // SAFETY: We can use `new_unchecked` because the `inner` parts are in as_pin_ref() 267 Left(ref inner) => Left(Pin::new_unchecked(inner)), in as_pin_ref() 268 Right(ref inner) => Right(Pin::new_unchecked(inner)), in as_pin_ref() 277 // We can use `new_unchecked` because the `inner` parts are guaranteed in as_pin_mut() 283 Left(ref mut inner) => Left(Pin::new_unchecked(inner)), in as_pin_mut() 284 Right(ref mut inner) => Right(Pin::new_unchecked(inner)), in as_pin_mut()
|
/third_party/rust/crates/rustix/src/backend/libc/process/ |
H A D | syscalls.rs | 136 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)) 156 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid))) 167 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid)) 417 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)))
|
/third_party/rust/crates/os_str_bytes/src/windows/wtf8/ |
H A D | convert.rs | 156 NonZeroU16::new_unchecked( in next()
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_aio.rs | 219 let mut aior = unsafe { Pin::new_unchecked(&mut aior) }; in on_stack() 398 let mut aiow = unsafe { Pin::new_unchecked(&mut aiow) }; in on_stack()
|
/third_party/rust/crates/rustix/src/backend/libc/thread/ |
H A D | syscalls.rs | 287 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(tid)) in gettid()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
H A D | syscalls.rs | 91 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid as u32)) 108 Ok(Pid::from_raw_nonzero(NonZeroU32::new_unchecked( 121 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid as u32)) 130 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid as u32)) 530 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(
|
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/ |
H A D | syscalls.rs | 213 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(tid as u32))
|
/third_party/rust/crates/rustix/src/backend/linux_raw/param/ |
H A D | auxv.rs | 363 Some(NonNull::new_unchecked(as_ptr(hdr) as *mut _)) in check_elf_base()
|
/third_party/rust/crates/proc-macro2/src/ |
H A D | fallback.rs | 761 Ident::new_unchecked(string, span) in new_checked() 764 pub fn new_unchecked(string: &str, span: Span) -> Self { in new_unchecked() functions
|
H A D | parse.rs | 303 let ident = crate::Ident::_new(crate::imp::Ident::new_unchecked( in ident_any() 944 let doc_ident = crate::Ident::_new(crate::imp::Ident::new_unchecked("doc", fallback_span));
|
H A D | wrapper.rs | 666 pub fn new_unchecked(string: &str, span: fallback::Span) -> Self { in new_unchecked() functions 667 Ident::Fallback(fallback::Ident::new_unchecked(string, span)) in new_unchecked()
|
/third_party/rust/crates/cxx/macro/src/ |
H A D | expand.rs | 692 quote_spanned!(span=> ::cxx::core::pin::Pin::new_unchecked(#deref_mut)) in expand_cxx_function_shim()
|
/third_party/rust/crates/memchr/bench/data/code/ |
H A D | rust-library.rs | 14626 ptr: unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }, in allocate_in() 14645 Self { ptr: unsafe { Unique::new_unchecked(ptr) }, cap: capacity, alloc } in from_raw_parts_in() 14821 self.ptr = unsafe { Unique::new_unchecked(ptr.cast().as_ptr()) }; in set_ptr() 19822 Self::from_inner(unsafe { NonNull::new_unchecked(ptr) }) in from_ptr() 20067 unsafe { Pin::new_unchecked(Rc::new(value)) } in pin() 20834 let mut guard = Guard { mem: NonNull::new_unchecked(mem), elems, layout, n_elems: 0 }; in from_iter_exact() 21631 Weak { ptr: unsafe { NonNull::new_unchecked(ptr) } } in from_raw() 23517 unsafe { Self::from_inner(NonNull::new_unchecked(ptr)) } in from_ptr() 23750 unsafe { Pin::new_unchecked(Arc::new(data)) } in pin() 24486 let mut guard = Guard { mem: NonNull::new_unchecked(me in from_iter_exact() [all...] |