about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMartin Habovstiak <martin.habovstiak@gmail.com>2022-01-08 00:03:02 +0100
committerMartin Habovstiak <martin.habovstiak@gmail.com>2022-01-08 18:04:51 +0100
commit1a966235138ad68967aa0892aa0621315081e4e8 (patch)
tree5ec8ef004249e64950d16b271849eee973fb04c7 /compiler/rustc_codegen_gcc
parente012a191d768adeda1ee36a99ef8b92d51920154 (diff)
downloadrust-1a966235138ad68967aa0892aa0621315081e4e8.tar.gz
rust-1a966235138ad68967aa0892aa0621315081e4e8.zip
Implemented const casts of raw pointers
This adds `as_mut()` method for `*const T` and `as_const()` for `*mut T`
which are intended to make casting of consts safer. This was discussed
in the [internals discussion][discussion].

[discussion]: https://internals.rust-lang.org/t/casting-constness-can-be-risky-heres-a-simple-fix/15933
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions