about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-01-22 16:02:13 -0800
committerGitHub <noreply@github.com>2020-01-22 16:02:13 -0800
commitbd090c9e8a3fe43174b4935d9c45d743313074f7 (patch)
tree539ecad76dd61a0c6c87fb651a5ccdf9aff13f9a /src/test/debuginfo/enum-thinlto.rs
parent51e4424ea4e8ffe1145eec2acc4cec55a7a0ffed (diff)
parentdd0507c054ea27ae836025761908d339a478e0ab (diff)
downloadrust-bd090c9e8a3fe43174b4935d9c45d743313074f7.tar.gz
rust-bd090c9e8a3fe43174b4935d9c45d743313074f7.zip
Rollup merge of #68388 - varkor:toogeneric-wf, r=eddyb
Make `TooGeneric` error in WF checking a proper error

`TooGeneric` is encountered during WF checking when we cannot determine that a constant involving a generic parameter will always be evaluated successfully (rather than resulting in an error). In these cases, the burden of proof should be with the caller, so that we can avoid post-monomorphisation tim errors (which was the previous previous behaviour). This commit ensures that this situation produces a proper compiler error, rather than silently ignoring it or ICEing.

Fixes https://github.com/rust-lang/rust/issues/66962.

r? @eddyb
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions