File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -291,14 +291,7 @@ pub struct ExternEntry {
291
291
pub public : bool
292
292
}
293
293
294
- impl ExternEntry {
295
- pub fn new_public ( location : Option < String > ) -> ExternEntry {
296
- ExternEntry {
297
- location,
298
- public : true
299
- }
300
- }
301
- }
294
+
302
295
303
296
impl Externs {
304
297
pub fn new ( data : BTreeMap < String , BTreeSet < ExternEntry > > ) -> Externs {
@@ -2704,6 +2697,15 @@ mod tests {
2704
2697
use syntax;
2705
2698
use super :: Options ;
2706
2699
2700
+ impl ExternEntry {
2701
+ fn new_public ( location : Option < String > ) -> ExternEntry {
2702
+ ExternEntry {
2703
+ location,
2704
+ public : true
2705
+ }
2706
+ }
2707
+ }
2708
+
2707
2709
fn optgroups ( ) -> getopts:: Options {
2708
2710
let mut opts = getopts:: Options :: new ( ) ;
2709
2711
for group in super :: rustc_optgroups ( ) {
You can’t perform that action at this time.
0 commit comments