]> git.lizzy.rs Git - rust.git/commitdiff
const_prop no longer does ptr-to-int casts
authorRalf Jung <post@ralfj.de>
Thu, 25 Jul 2019 08:47:11 +0000 (10:47 +0200)
committerRalf Jung <post@ralfj.de>
Fri, 2 Aug 2019 21:04:11 +0000 (23:04 +0200)
src/test/mir-opt/const_prop/reify_fn_ptr.rs

index 809eb19ade899194aedce53275369e2a770715ec..7e36b2a6b1b396bc35b8e4813e1e8a4323fc37ee 100644 (file)
@@ -19,7 +19,7 @@ fn main() {
 //      _3 = const Scalar(AllocId(1).0x0) : fn();
 //      _2 = move _3 as usize (Misc);
 //      ...
-//      _1 = const Scalar(AllocId(1).0x0) : *const fn();
+//      _1 = move _2 as *const fn() (Misc);
 //      ...
 //  }
 // END rustc.main.ConstProp.after.mir