Skip to content

Commit

Permalink
Use rustc_demangle::demangle_stream instead of our own demangle helpe…
Browse files Browse the repository at this point in the history
…r based on rust-demangler
  • Loading branch information
taiki-e committed Mar 10, 2024
1 parent 541f698 commit 60affb1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 129 deletions.
7 changes: 1 addition & 6 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,5 @@
"dictionaries": ["rust"]
}
],
"ignorePaths": [
"**/fixtures/*.json",
"tests/fixtures/coverage-reports/**",
// mangled names in test data case a lot of FP.
"**/src/demangle.rs"
]
"ignorePaths": ["**/fixtures/*.json", "tests/fixtures/coverage-reports/**"]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ lcov2cobertura = "1.0.1"
lexopt = "0.3"
opener = "0.6"
regex = { version = "1.3", default-features = false, features = ["perf", "std"] }
rustc-demangle = "0.1.21"
rustc-demangle = { version = "0.1.23", features = ["std"] }
ruzstd = { version = "0.6", default-features = false, features = ["std"] }
serde = "1.0.103"
serde_derive = "1.0.103"
Expand Down
120 changes: 0 additions & 120 deletions src/demangle.rs

This file was deleted.

5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ mod cargo;
mod clean;
mod cli;
mod context;
mod demangle;
mod env;
mod fs;
mod metadata;
Expand All @@ -68,7 +67,9 @@ fn try_main() -> Result<()> {
term::verbose::set(args.verbose != 0);

match args.subcommand {
Subcommand::Demangle => demangle::run()?,
Subcommand::Demangle => {
rustc_demangle::demangle_stream(&mut io::stdin().lock(), &mut io::stdout(), false)?;
}
Subcommand::Clean => clean::run(&mut args)?,
Subcommand::ShowEnv => {
let cx = &Context::new(args)?;
Expand Down

0 comments on commit 60affb1

Please sign in to comment.