Tweak type inference for const operands in inline asm by Amanieu · Pull Request #125558 · rust-lang/rust (original) (raw)

since the last merge attempt, only eb726a5 was added because that broke a test.

The tests in question are, based on the CI that we've run so far, completely stable in their current form.

In any case, here is a reduced testcase that, based on my understanding of the problem, should have the error in CI

https://gist.github.com/folkertdev/1afae9ede304e8c14040458039bd70c3

it triggers the same error using an invalid sym with both asm! and global_asm!. Locally, the asm! error comes first, but on CI it would come second. It's unclear to me which of the error messages is "at fault" (is one too early, or the other too late) so I've added traces for both.

"hash" does not occur, so it might be something different. But again, to my knowledge, this is not a problem any more for the current PR.