]> git.lizzy.rs Git - rust.git/commit
Don't crash on non-existent path in constant.
authorEli Friedman <eli.friedman@gmail.com>
Wed, 30 Sep 2015 22:04:21 +0000 (15:04 -0700)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 30 Sep 2015 22:04:21 +0000 (15:04 -0700)
commit1763fcb36d85767fa1fee4c2de66fc2855633fcd
treea7458523ca93550091f86bf76b7a262decb9721d
parentdcb167e14784edff2021869b92dff4dd585e64a2
Don't crash on non-existent path in constant.

The behavior here isn't really ideal, but we can't really do much better
given the current state of constant evaluation.

Fixes #28670, and probably a bunch of duplicates.
src/librustc/middle/const_eval.rs
src/test/compile-fail/invalid-path-in-const.rs [new file with mode: 0644]