Skip to content

Compiler Crashes when trying to create a label in inline assembler with macros. #53787

Description

@FabianB1998

Compiler Crashes when trying to create a label in inline assembler with macros. I am not sure if my could would work, but I am pretty sure it should not crash the compiler.

I tried this code: https://pastebin.com/pxCPeQnt

https://pastebin.com/WK4ydW8i
This does not crash, it seems it is somehow relating to the input formatting

I expected to see this happen: Generate a code sample with the given id
Instead, this happened: Compiler crashes

rustc --version --verbose:

rustc 1.30.0-nightly (73c7873 2018-08-05)
binary: rustc
commit-hash: 73c7873
commit-date: 2018-08-05
host: x86_64-pc-windows-msvc
release: 1.30.0-nightly
LLVM version: 7.0

Backtrace:
https://hastebin.com/xeyokeriqo.rb or https://pastebin.com/gDAvd4wQ
(Github keeps messing with the windows formatting)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlA-inline-assemblyArea: Inline assembly (`asm!(…)`)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions