Symbol-mangling (v0) should show difference between async / closure / generator #104830
Labels
A-closures
Area: Closures (`|…| { … }`)
A-linkage
Area: linking into static, shared libraries and binaries
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
Generates the following demangled symbol with legacy demangling:
(v0 mangling is similar, but with
{closure#0}
instead)Whereas Windows mangling gives this fn name:
This makes it clear what is an async fn, closure or async block. v0 symbol mangling should make a similar distinction.
#104333 is a first attempt to thread the necessary information through to the place that does the symbol mangling, but actually extending the v0 symbol mangling format / spec is necessary as well to fully solve this.
The text was updated successfully, but these errors were encountered: