Skip to content

Commit

Permalink
Move new_public to 'tess' module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Apr 14, 2019
1 parent 0f88106 commit b23a883
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/librustc/session/config.rs
Expand Up @@ -291,14 +291,7 @@ pub struct ExternEntry {
pub public: bool
}

impl ExternEntry {
pub fn new_public(location: Option<String>) -> ExternEntry {
ExternEntry {
location,
public: true
}
}
}


impl Externs {
pub fn new(data: BTreeMap<String, BTreeSet<ExternEntry>>) -> Externs {
Expand Down Expand Up @@ -2704,6 +2697,15 @@ mod tests {
use syntax;
use super::Options;

impl ExternEntry {
fn new_public(location: Option<String>) -> ExternEntry {
ExternEntry {
location,
public: true
}
}
}

fn optgroups() -> getopts::Options {
let mut opts = getopts::Options::new();
for group in super::rustc_optgroups() {
Expand Down

0 comments on commit b23a883

Please sign in to comment.