Skip to content

Commit e57408e

Browse files
committed
Mangling: Remove type from constant placeholders
1 parent dd0d8f4 commit e57408e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/2603-rust-symbol-name-mangling-v0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ Mangled names conform to the following grammar:
725725
<dyn-trait> = <path> {<dyn-trait-assoc-binding>}
726726
<dyn-trait-assoc-binding> = "p" <undisambiguated-identifier> <type>
727727
<const> = <type> <const-data>
728-
| <type> "p" // placeholder (e.g. for polymorphic constants), shown as _: T
728+
| "p" // placeholder, shown as _
729729
| <backref>
730730
731731
// The encoding of a constant depends on its type. Integers use their value,
@@ -1155,3 +1155,4 @@ pub static QUUX: u32 = {
11551155
- Allow identifiers to start with a digit.
11561156
- Make `<binder>` optional in `<fn-sig>` and `<dyn-bounds>` productions.
11571157
- Extend `<const-data>` to include `bool` values, `char` values, and negative integer values.
1158+
- Remove type from constant placeholders.

0 commit comments

Comments
 (0)