]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #98174 - Kixunil:rename_ptr_as_mut_const_to_cast, r=scottmcm
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Fri, 22 Jul 2022 06:23:39 +0000 (11:53 +0530)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 06:23:39 +0000 (11:53 +0530)
commitad31d5c6a5551c88e98dd35c70a7af18445dadd8
treea81f25b6055b037dcf0852eaba79573ae7cbbfd3
parentaa0189170057a6b56f445f05b9840caf6f260212
parenteb5acc9b9b520092cc667a810a18498b28d052ab
Rollup merge of #98174 - Kixunil:rename_ptr_as_mut_const_to_cast, r=scottmcm

Rename `<*{mut,const} T>::as_{const,mut}` to `cast_`

This renames the methods to use the `cast_` prefix instead of `as_` to
make it more readable and avoid confusion with `<*mut T>::as_mut()`
which is `unsafe` and returns a reference.

Sorry, didn't notice ACP process exists, opened https://github.com/rust-lang/libs-team/issues/51

See #92675