Make rustc_on_unimplemented std-agnostic
#113054
Merged
rustc_on_unimplemented std-agnostic
#113054