about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-16 19:18:30 +0200
committerGitHub <noreply@github.com>2024-10-16 19:18:30 +0200
commit1817de609b0ffaab0cf32de6baae5944f6f6e7d6 (patch)
tree6b686cf6926cfb90564eb8a179c45d3325a54e2d /compiler/rustc_codegen_llvm/src
parent0037048da8ed19feef7ee1437f123a88a7342b33 (diff)
parent94ab726c7856cd7716d2a33db3e1915faed99008 (diff)
downloadrust-1817de609b0ffaab0cf32de6baae5944f6f6e7d6.tar.gz
rust-1817de609b0ffaab0cf32de6baae5944f6f6e7d6.zip
Rollup merge of #130822 - bjoernager:non-null-from-ref, r=dtolnay
Add `from_ref` and `from_mut` constructors to `core::ptr::NonNull`.

Relevant tracking issue: #130823

The `core::ptr::NonNull` type should have the convenience constructors `from_ref` and `from_mut` for parity with `core::ptr::from_ref` and `core::ptr::from_mut`.

Although the type in question already implements `From<&T>` and `From<&mut T>`, these new functions also carry the ability to be used in constant expressions (due to not being behind a trait).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions