Skip to content

Commit

Permalink
v0: replace skip_* methods with print_* methods in a "skip printi…
Browse files Browse the repository at this point in the history
…ng" mode. (#53)

* v0: add doc comments on `Printer` fields.

* v0: shorten `write_str` & `fmt::Display::fmt` calls to just `print`.

* v0: replace `skip_*` methods with `print_*` methods in a "skip printing" mode.
  • Loading branch information
eddyb authored Jul 20, 2021
1 parent d7ea01a commit d860281
Show file tree
Hide file tree
Showing 2 changed files with 177 additions and 257 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,5 +441,8 @@ mod tests {
super::demangle("RYFG_FGyyEvRYFF_EvRYFFEvERLB_B_B_ERLRjB_B_B_")
)
.is_err());
// NOTE(eddyb) somewhat reduced version of the above, effectively
// `<for<...> fn()>` with a larger number of lifetimes in `...`.
assert!(write!(s, "{}", super::demangle("_RMC0FGZZZ_Eu")).is_err());
}
}
Loading

0 comments on commit d860281

Please sign in to comment.