Skip to content

Commit b23a883

Browse files
committed
Move new_public to 'tess' module
1 parent 0f88106 commit b23a883

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
@@ -291,14 +291,7 @@ pub struct ExternEntry {
291291
pub public: bool
292292
}
293293

294-
impl ExternEntry {
295-
pub fn new_public(location: Option<String>) -> ExternEntry {
296-
ExternEntry {
297-
location,
298-
public: true
299-
}
300-
}
301-
}
294+
302295

303296
impl Externs {
304297
pub fn new(data: BTreeMap<String, BTreeSet<ExternEntry>>) -> Externs {
@@ -2704,6 +2697,15 @@ mod tests {
27042697
use syntax;
27052698
use super::Options;
27062699

2700+
impl ExternEntry {
2701+
fn new_public(location: Option<String>) -> ExternEntry {
2702+
ExternEntry {
2703+
location,
2704+
public: true
2705+
}
2706+
}
2707+
}
2708+
27072709
fn optgroups() -> getopts::Options {
27082710
let mut opts = getopts::Options::new();
27092711
for group in super::rustc_optgroups() {

0 commit comments

Comments
 (0)