diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-03-16 01:50:34 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-03-27 22:16:33 -0400 |
| commit | 441dc3640a408e612064464b0c6308bdca6c16ce (patch) | |
| tree | 15e0bbd467ae94a5993efa451354076c396b4809 /compiler/rustc_graphviz/src/tests.rs | |
| parent | 785aeac521e54da8c6826396d05446227e19ee40 (diff) | |
| download | rust-441dc3640a408e612064464b0c6308bdca6c16ce.tar.gz rust-441dc3640a408e612064464b0c6308bdca6c16ce.zip | |
Remove (lots of) dead code
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
Diffstat (limited to 'compiler/rustc_graphviz/src/tests.rs')
| -rw-r--r-- | compiler/rustc_graphviz/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_graphviz/src/tests.rs b/compiler/rustc_graphviz/src/tests.rs index 70b8197f5ef..a297bac86c4 100644 --- a/compiler/rustc_graphviz/src/tests.rs +++ b/compiler/rustc_graphviz/src/tests.rs @@ -111,7 +111,7 @@ impl<'a> Labeller<'a> for LabelledGraph { fn node_label(&'a self, n: &Node) -> LabelText<'a> { match self.node_labels[*n] { Some(l) => LabelStr(l.into()), - None => LabelStr(id_name(n).name()), + None => LabelStr(id_name(n).name), } } fn edge_label(&'a self, e: &&'a Edge) -> LabelText<'a> { |
