about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMartin Habovstiak <martin.habovstiak@gmail.com>2022-06-16 19:47:24 +0200
committerMartin Habovstiak <martin.habovstiak@gmail.com>2022-07-21 18:30:05 +0200
commiteb5acc9b9b520092cc667a810a18498b28d052ab (patch)
tree93fa2529d4d37cb4a5e3376fb7cd980dafe6740c /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent6ec3993ef4a4eb72bc20477fe9a4d92acd53f2c6 (diff)
downloadrust-eb5acc9b9b520092cc667a810a18498b28d052ab.tar.gz
rust-eb5acc9b9b520092cc667a810a18498b28d052ab.zip
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.

See #92675
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions