about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-06 01:20:43 +0000
committerbors <bors@rust-lang.org>2024-08-06 01:20:43 +0000
commitc9687a95a602091777e28703aa5abf20f1ce1797 (patch)
tree47beadd5eaff51898b0b5ad0d04c601148b9d525 /compiler/rustc_codegen_llvm/src
parentb586701f78a6d5c7f618b76e7ae3cace9a6fbf37 (diff)
parenteb726a50e65387c348ba56f2416fc3c0b649f95e (diff)
downloadrust-c9687a95a602091777e28703aa5abf20f1ce1797.tar.gz
rust-c9687a95a602091777e28703aa5abf20f1ce1797.zip
Auto merge of #125558 - Amanieu:const-asm-type, r=lcnr
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.

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions