about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-01 02:13:35 +0200
committerGitHub <noreply@github.com>2020-10-01 02:13:35 +0200
commitf23559451b0dc5181d73ddd89657266d4e150b6a (patch)
treeee99fc43a28f46596e37598db6eaf40f82099ed2 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent37df40bd1c9374ca91112f2d1ea0e27127130c09 (diff)
parenta4783debe021c6d13ce3cf5167efe98c5baeaa26 (diff)
downloadrust-f23559451b0dc5181d73ddd89657266d4e150b6a.tar.gz
rust-f23559451b0dc5181d73ddd89657266d4e150b6a.zip
Rollup merge of #77303 - lcnr:const-evaluatable-TooGeneric, r=oli-obk,varkor
const evaluatable: improve `TooGeneric` handling

Instead of emitting an error in `fulfill`, we now correctly stall on inference variables.

As `const_eval_resolve` returns `ErrorHandled::TooGeneric` when encountering generic parameters on which
we actually do want to error, we check for inference variables and eagerly emit an error if they don't exist, returning `ErrorHandled::Reported` instead.

Also contains a small bugfix for `ConstEquate` where we previously only stalled on type variables. This is probably a leftover from
when we did not yet support stalling on const inference variables.

r? @oli-obk cc @varkor @eddyb
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions