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 {
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() {