We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Display
1 parent 8d2c735 commit 04806aaCopy full SHA for 04806aa
src/lib.rs
@@ -249,7 +249,7 @@ impl<'a> fmt::Display for Demangle<'a> {
249
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
250
// Alright, let's do this.
251
if !self.valid {
252
- return f.write_str(self.inner);
+ return f.write_str(self.original);
253
}
254
255
let mut inner = self.inner;
@@ -465,4 +465,9 @@ mod tests {
465
5usage20h)3\0\0\0\0\0\0\07e2734cOsbE\
466
").to_string();
467
468
+
469
+ #[test]
470
+ fn invalid_no_chop() {
471
+ t!("_ZNfooE", "_ZNfooE");
472
+ }
473
0 commit comments