]> git.lizzy.rs Git - rust.git/commit
improve error message for disallowed ptr-to-int casts in const eval
authorJeffrey Griffin <git@geogriffin.com>
Fri, 5 Feb 2021 01:43:46 +0000 (17:43 -0800)
committerJeffrey Griffin <git@geogriffin.com>
Fri, 5 Feb 2021 08:52:19 +0000 (00:52 -0800)
commitff315e34e8cfb9766b10f7740c8720e56f6d3475
tree554d1b25e560dca725b1718e575cf70060505106
parent6a388dcfbb07b3ca3d4ad3fd3902ac7e3b11b5f6
improve error message for disallowed ptr-to-int casts in const eval
compiler/rustc_mir/src/const_eval/error.rs
compiler/rustc_mir/src/const_eval/machine.rs
src/test/ui/const-ptr/ptr_to_usize_cast.rs [new file with mode: 0644]
src/test/ui/const-ptr/ptr_to_usize_cast.stderr [new file with mode: 0644]