Skip to content

Commit 689136e

Browse files
authored
Merge pull request #19 from sfackler/fix-projections
Handle mangled `=`s
2 parents 7f216c0 + 91300b1 commit 689136e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ impl<'a> fmt::Display for Demangle<'a> {
312312
"$u7e$" => "~",
313313
"$u20$" => " ",
314314
"$u27$" => "'",
315+
"$u3d$" => "=",
315316
"$u5b$" => "[",
316317
"$u5d$" => "]",
317318
"$u7b$" => "{",
@@ -492,4 +493,9 @@ mod tests {
492493
fn invalid_no_chop() {
493494
t_err!("_ZNfooE");
494495
}
496+
497+
#[test]
498+
fn handle_assoc_types() {
499+
t!("_ZN151_$LT$alloc..boxed..Box$LT$alloc..boxed..FnBox$LT$A$C$$u20$Output$u3d$R$GT$$u20$$u2b$$u20$$u27$a$GT$$u20$as$u20$core..ops..function..FnOnce$LT$A$GT$$GT$9call_once17h69e8f44b3723e1caE", "<alloc::boxed::Box<alloc::boxed::FnBox<A, Output=R> + 'a> as core::ops::function::FnOnce<A>>::call_once::h69e8f44b3723e1ca");
500+
}
495501
}

0 commit comments

Comments
 (0)