Skip to content

inline_asm missing normalization #189

@lcnr

Description

@lcnr
Contributor

https://crater-reports.s3.amazonaws.com/pr-133502-4/try%230c7fed2b7584d310ca8221267fa1b3bec4df427f/reg/solana-account-decoder-2.1.21/log.txt

fn invoke(pc_section: &[usize]) {
    unsafe {
        std::arch::asm!(
            "/* {} */",
            in(reg) pc_section[0]
        );
    }
}

results in

error: cannot use value of type `<[usize] as Index<usize>>::Output` for inline assembly
 --> src/main.rs:5:21
  |
5 |             in(reg) pc_section[0]
  |                     ^^^^^^^^^^^^^
  |
  = note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly

Activity

added
from-craterA regression found via a crater run, not part of our test suite
on Apr 25, 2025
moved this from unknown to in progress in -Znext-solver=globallyon Apr 25, 2025
added a commit that references this issue on Apr 26, 2025
76f9fa6
added a commit that references this issue on Apr 26, 2025
ce40f86
added 3 commits that reference this issue on Apr 28, 2025
e81060b
657bfe0
3f5406f
added a commit that references this issue on Apr 29, 2025
moved this from in progress to done in -Znext-solver=globallyon Apr 29, 2025
lcnr

lcnr commented on Apr 29, 2025

@lcnr
ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

from-craterA regression found via a crater run, not part of our test suite

Type

No type

Projects

Status

done

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @compiler-errors@lcnr

    Issue actions

      inline_asm missing normalization · Issue #189 · rust-lang/trait-system-refactor-initiative