You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/rustc/src/symbol-mangling/v0.md
+8
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,14 @@ There is no standardized demangled form of the symbols,
25
25
though suggestions are provided for how to demangle a symbol.
26
26
Implementers may choose to demangle in different ways.
27
27
28
+
## Extensions
29
+
30
+
This format may be extended in the future to add new tags as Rust is extended with new language items.
31
+
To be forward compatible, demanglers should gracefully handle symbols that have encodings where it encounters a tag character not described in this document.
32
+
For example, they may fall back to displaying the mangled symbol.
33
+
The format may be extended anywhere there is a tag character, such as the [type] rule.
34
+
The meaning of existing tags and encodings will not be changed.
35
+
28
36
## Grammar notation
29
37
30
38
The format of an encoded symbol is illustrated as a context free grammar in an extended BNF-like syntax.
0 commit comments