about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2020-11-22 09:58:58 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2021-09-17 12:47:48 -0400
commit2ee89144e21c10a95b411ff72235da6e29c04a94 (patch)
tree2c639b798247fc8c3c1fc647e72d22aba99b91ce /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parente0c38af27cb5f6f961809601b717d6afc3b190ee (diff)
downloadrust-2ee89144e21c10a95b411ff72235da6e29c04a94.tar.gz
rust-2ee89144e21c10a95b411ff72235da6e29c04a94.zip
introduce new fallback algorithm
We now fallback type variables using the following rules:

* Construct a coercion graph `A -> B` where `A` and `B` are unresolved
  type variables or the `!` type.
* Let D be those variables that are reachable from `!`.
* Let N be those variables that are reachable from a variable not in
D.
* All variables in (D \ N) fallback to `!`.
* All variables in (D & N) fallback to `()`.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions