rust/tests/ui/asm
bors c9687a95a6 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>
-->
2024-08-06 01:20:43 +00:00
..
aarch64 Auto merge of #125558 - Amanieu:const-asm-type, r=lcnr 2024-08-06 01:20:43 +00:00
x86_64 Auto merge of #125558 - Amanieu:const-asm-type, r=lcnr 2024-08-06 01:20:43 +00:00
arm-low-dreg.rs
bad-arch.rs
bad-arch.stderr
bad-template.aarch64.stderr
bad-template.rs
bad-template.x86_64.stderr
binary_asm_labels.rs
binary_asm_labels.stderr
binary_asm_labels_allowed.rs
const-error.rs
const-error.stderr
empty_global_asm.rs
fail-const-eval-issue-121099.rs
fail-const-eval-issue-121099.stderr
generic-const.rs
inline-syntax.arm.stderr
inline-syntax.arm_llvm_18.stderr
inline-syntax.rs
inline-syntax.x86_64.stderr
invalid-const-operand.rs
invalid-const-operand.stderr
invalid-sym-operand.rs add needs-asm-support to invalid-sym-operand 2024-08-02 19:59:34 +01:00
invalid-sym-operand.stderr add needs-asm-support to invalid-sym-operand 2024-08-02 19:59:34 +01:00
issue-72570.rs
issue-72570.stderr
issue-85247.rs
issue-85247.rwpi.stderr
issue-87802.rs
issue-87802.stderr
issue-89305.rs
issue-89305.stderr
issue-92378.rs
issue-97490.rs
issue-99071.rs
issue-99071.stderr
issue-99122-2.rs
issue-99122.rs
issue-99122.stderr
issue-113788.rs
issue-113788.stderr
may_unwind.rs
naked-functions-ffi.rs
naked-functions-ffi.stderr
naked-functions-inline.rs
naked-functions-inline.stderr
naked-functions-instruction-set.rs
naked-functions-testattrs.rs
naked-functions-testattrs.stderr
naked-functions-unused.aarch64.stderr
naked-functions-unused.rs
naked-functions-unused.x86_64.stderr
naked-functions.rs
naked-functions.stderr
naked-invalid-attr.rs
naked-invalid-attr.stderr
named-asm-labels.rs
named-asm-labels.s
named-asm-labels.stderr
noreturn.rs
parse-error.rs
parse-error.stderr
reg-conflict.rs
reg-conflict.stderr
simple_global_asm.rs
type-check-1.rs
type-check-1.stderr
type-check-4.rs
type-check-4.stderr
unpretty-expanded.rs
unpretty-expanded.stdout
unsupported-option.fixed
unsupported-option.rs
unsupported-option.stderr