Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to demangle some symbols with v0 mangling syntax #45

Closed
EFanZh opened this issue Apr 22, 2021 · 3 comments
Closed

Fail to demangle some symbols with v0 mangling syntax #45

EFanZh opened this issue Apr 22, 2021 · 3 comments

Comments

@EFanZh
Copy link

EFanZh commented Apr 22, 2021

Compile the following program with -Zsymbol-mangling-version=v0 flag:

fn main() {
    let _: Box<dyn Fn(&i32)> = Box::new(|_| {});
}

There are some symbols in the generated binary that start with _R but won’t demangle. Here is an example:

_RNvMs1_NtNtCs4RZURTQcbNt_4core3ptr6uniqueINtB5_6UniqueDG_INtNtNtB9_3ops8function2FnTRL0_lEEG_p6OutputuEL_E6as_refCs64Hs8MuYH5P_13mangled_names

After removing the second G_ substring, this one does demangle to <core[38bc23ee7739a169]::ptr::unique::Unique<dyn for<'a> core[38bc23ee7739a169]::ops::function::Fn<(&'a i32,), Output = ()>>>::as_ref:

_RNvMs1_NtNtCs4RZURTQcbNt_4core3ptr6uniqueINtB5_6UniqueDG_INtNtNtB9_3ops8function2FnTRL0_lEEp6OutputuEL_E6as_refCs64Hs8MuYH5P_13mangled_names
@EFanZh
Copy link
Author

EFanZh commented Apr 23, 2021

Maybe related: rust-lang/rust#83611.

@michaelwoerister
Copy link
Member

Is this still an issue?

@EFanZh
Copy link
Author

EFanZh commented Jul 23, 2021

I think it is OK now.

@EFanZh EFanZh closed this as completed Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants