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 {
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
303296impl 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 ( ) {
You can’t perform that action at this time.
0 commit comments