Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #129472 - folkertdev:const-refs-to-static-asm-const, …
…r=lcnr fix ICE when `asm_const` and `const_refs_to_static` are combined fixes rust-lang/rust#129462 fixes #126896 fixes #124164 I think this is a case that was missed in the fix for rust-lang/rust#125558, which inserts a type error in the case of an invalid (that is, non-integer) type being passed to an asm `const` operand. I'm not 100% sure that `span_mirbug_and_err` is the right macro here, but it is used earlier with `builtin_deref` and seems to do the trick. r? ``@lcnr``
- Loading branch information