Skip to content

Commit

Permalink
Rollup merge of #129472 - folkertdev:const-refs-to-static-asm-const, …
Browse files Browse the repository at this point in the history
…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
matthiaskrgr authored Sep 5, 2024
2 parents 223f92a + 0ff282b commit 97ae114
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 97ae114

Please sign in to comment.