about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2024-05-26 00:11:32 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2024-07-25 20:12:14 +0100
commit4d747128eb1e1c0da7432b071107d29721e19a04 (patch)
tree167077aec13eccf565b49a3b12b00945e6bb985c /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenteb10639928a2781cf0a12440007fbcc1e3a6888f (diff)
downloadrust-4d747128eb1e1c0da7432b071107d29721e19a04.tar.gz
rust-4d747128eb1e1c0da7432b071107d29721e19a04.zip
Tweak type inference for `const` operands in inline asm
Previously these would be treated like integer literals and default to
`i32` if a type could not be determined. To allow for
forward-compatibility with `str` constants in the future, this PR
changes type inference to use an unbound type variable instead.

The actual type checking is deferred until after typeck where we still
ensure that the final type for the `const` operand is an integer type.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions