Skip to content

Commit f031285

Browse files
committed
Remove graphviz::LabelText::* public reexport
Part of #19253 [breaking-change]
1 parent c894171 commit f031285

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/libgraphviz/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@
168168
//! dot::Id::new(format!("N{}", n)).unwrap()
169169
//! }
170170
//! fn node_label<'b>(&'b self, n: &Nd) -> dot::LabelText<'b> {
171-
//! dot::LabelStr(self.nodes[*n].as_slice().into_cow())
171+
//! dot::LabelText::LabelStr(self.nodes[*n].as_slice().into_cow())
172172
//! }
173173
//! fn edge_label<'b>(&'b self, _: &Ed) -> dot::LabelText<'b> {
174-
//! dot::LabelStr("&sube;".into_cow())
174+
//! dot::LabelText::LabelStr("&sube;".into_cow())
175175
//! }
176176
//! }
177177
//!
@@ -225,10 +225,10 @@
225225
//! }
226226
//! fn node_label<'b>(&'b self, n: &Nd<'b>) -> dot::LabelText<'b> {
227227
//! let &(i, _) = n;
228-
//! dot::LabelStr(self.nodes[i].as_slice().into_cow())
228+
//! dot::LabelText::LabelStr(self.nodes[i].as_slice().into_cow())
229229
//! }
230230
//! fn edge_label<'b>(&'b self, _: &Ed<'b>) -> dot::LabelText<'b> {
231-
//! dot::LabelStr("&sube;".into_cow())
231+
//! dot::LabelText::LabelStr("&sube;".into_cow())
232232
//! }
233233
//! }
234234
//!
@@ -274,7 +274,7 @@
274274
#![feature(globs, slicing_syntax)]
275275
#![feature(unboxed_closures)]
276276

277-
pub use self::LabelText::*;
277+
use self::LabelText::*;
278278

279279
use std::borrow::IntoCow;
280280
use std::io;
@@ -586,8 +586,8 @@ pub fn render_opts<'a, N:Clone+'a, E:Clone+'a, G:Labeller<'a,N,E>+GraphWalk<'a,N
586586
#[cfg(test)]
587587
mod tests {
588588
use self::NodeLabels::*;
589-
use super::{Id, LabelText, LabelStr, EscStr, Labeller};
590-
use super::{Nodes, Edges, GraphWalk, render};
589+
use super::{Id, Labeller, Nodes, Edges, GraphWalk, render};
590+
use super::LabelText::{mod, LabelStr, EscStr};
591591
use std::io::IoResult;
592592
use std::str;
593593
use std::borrow::IntoCow;

src/librustc/middle/cfg/graphviz.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ impl<'a, 'ast> dot::Labeller<'a, Node<'a>, Edge<'a>> for LabelledCFG<'a, 'ast> {
6060

6161
fn node_label(&'a self, &(i, n): &Node<'a>) -> dot::LabelText<'a> {
6262
if i == self.cfg.entry {
63-
dot::LabelStr("entry".into_cow())
63+
dot::LabelText::LabelStr("entry".into_cow())
6464
} else if i == self.cfg.exit {
65-
dot::LabelStr("exit".into_cow())
65+
dot::LabelText::LabelStr("exit".into_cow())
6666
} else if n.data.id == ast::DUMMY_NODE_ID {
67-
dot::LabelStr("(dummy_node)".into_cow())
67+
dot::LabelText::LabelStr("(dummy_node)".into_cow())
6868
} else {
6969
let s = self.ast_map.node_to_string(n.data.id);
7070
// left-aligns the lines
7171
let s = replace_newline_with_backslash_l(s);
72-
dot::EscStr(s.into_cow())
72+
dot::LabelText::EscStr(s.into_cow())
7373
}
7474
}
7575

@@ -87,7 +87,7 @@ impl<'a, 'ast> dot::Labeller<'a, Node<'a>, Edge<'a>> for LabelledCFG<'a, 'ast> {
8787
let s = replace_newline_with_backslash_l(s);
8888
label.push_str(format!("exiting scope_{} {}", i, s[])[]);
8989
}
90-
dot::EscStr(label.into_cow())
90+
dot::LabelText::EscStr(label.into_cow())
9191
}
9292
}
9393

src/librustc_borrowck/graphviz.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ impl<'a, 'tcx> dot::Labeller<'a, Node<'a>, Edge<'a>> for DataflowLabeller<'a, 't
137137
let suffix = self.dataflow_for(dataflow::Exit, n);
138138
let inner_label = self.inner.node_label(n);
139139
inner_label
140-
.prefix_line(dot::LabelStr(prefix.into_cow()))
141-
.suffix_line(dot::LabelStr(suffix.into_cow()))
140+
.prefix_line(dot::LabelText::LabelStr(prefix.into_cow()))
141+
.suffix_line(dot::LabelText::LabelStr(suffix.into_cow()))
142142
}
143143
fn edge_label(&'a self, e: &Edge<'a>) -> dot::LabelText<'a> { self.inner.edge_label(e) }
144144
}

0 commit comments

Comments
 (0)