Add some APIs to ptr::NonNull and fix since
attributes
#47631
Merged
since
attributes
#47631