Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAssembly private symbols redefinition error #27395
Comments
This comment has been minimized.
This comment has been minimized.
|
In the inline assembly you are not supposed to use whatever names you want for labels. You must use something like this instead:
and
where |
This comment has been minimized.
This comment has been minimized.
|
Ahh, thank you! |
This comment has been minimized.
This comment has been minimized.
Almost none. I’m doubtful we want to introspect assembly either.
Doubtful. Inline assembly is an escape hatch to do whatever you want. You’re responsible for the errors you cause yourself. There’s at least one more way to make this error go away by annotating the function as Note that inline assembly is an unstable feature and we are not even sure if the current design the correct one; that is, many things might change before it becomes stable. |
This comment has been minimized.
This comment has been minimized.
|
Yes, I am not sure that this is something that's fixable... |
steveklabnik
added
the
A-inline-assembly
label
Aug 4, 2015
brson
added
T-compiler
P-low
labels
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Anybody want to make a decision about whether there's a bug here or not? |
This comment has been minimized.
This comment has been minimized.
|
I'm going to say that this is not a bug. |
JustAPerson commentedJul 30, 2015
On playpen nightly
The following two conditions are necessary to trigger this:
#![crate_type="lib"])-C opt-level=2Without both of these, the error does not occur.