about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-01-05 22:32:53 -0500
committerAaron Hill <aa1ronham@gmail.com>2020-01-13 05:00:55 -0500
commit5896998e7659bf22ffb804956a3680c028ede45f (patch)
treebed4a3d8f639992e94e1d4fb9b2b3aef5c75a6dc /src/test/debuginfo/enum-thinlto.rs
parente82febc78e5a14356de5f713b904eebef1e86956 (diff)
downloadrust-5896998e7659bf22ffb804956a3680c028ede45f.tar.gz
rust-5896998e7659bf22ffb804956a3680c028ede45f.zip
Don't run const propagation on items with inconsistent bounds
Using `#![feature(trivial_bounds)]`, it's possible to write functions
with unsatisfiable 'where' clauses, making them uncallable. However, the
user can act as if these 'where' clauses are true inside the body of the
function, leading to code that would normally be impossible to write.

Since const propgation can run even without any user-written calls to a
function, we need to explcitly check for these uncallable functions.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions