]> git.lizzy.rs Git - rust.git/commit
Ensure that we get a hard error on generic ZST constants if their body causes an...
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sun, 8 Dec 2019 00:55:14 +0000 (01:55 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Sun, 8 Dec 2019 00:55:14 +0000 (01:55 +0100)
commitdf26968bb57a0ac9dc71f1cc7b9191229db82182
tree742e1b6f52f16482afcdcf15cf9f6ea3f804ebfe
parent5c5c8eb864e56ce905742b8e97df5506bba6aeef
Ensure that we get a hard error on generic ZST constants if their body causes an error during evaluation
src/librustc_codegen_ssa/mir/constant.rs
src/librustc_mir/transform/simplify.rs
src/test/ui/consts/assoc_const_generic_impl.rs [new file with mode: 0644]
src/test/ui/consts/assoc_const_generic_impl.stderr [new file with mode: 0644]