Skip to content

Commit da5f1bf

Browse files
committed
Move new_public to 'tess' module
1 parent 7f033b5 commit da5f1bf

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/librustc/session/config.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,7 @@ pub struct ExternEntry {
276276
pub public: bool
277277
}
278278

279-
impl ExternEntry {
280-
pub fn new_public(location: Option<String>) -> ExternEntry {
281-
ExternEntry {
282-
location,
283-
public: true
284-
}
285-
}
286-
}
279+
287280

288281
impl Externs {
289282
pub fn new(data: BTreeMap<String, BTreeSet<ExternEntry>>) -> Externs {
@@ -2676,6 +2669,15 @@ mod tests {
26762669
use syntax;
26772670
use super::Options;
26782671

2672+
impl ExternEntry {
2673+
fn new_public(location: Option<String>) -> ExternEntry {
2674+
ExternEntry {
2675+
location,
2676+
public: true
2677+
}
2678+
}
2679+
}
2680+
26792681
fn optgroups() -> getopts::Options {
26802682
let mut opts = getopts::Options::new();
26812683
for group in super::rustc_optgroups() {

0 commit comments

Comments
 (0)