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 @@ -276,14 +276,7 @@ pub struct ExternEntry {
276276 pub public : bool
277277}
278278
279- impl ExternEntry {
280- pub fn new_public ( location : Option < String > ) -> ExternEntry {
281- ExternEntry {
282- location,
283- public : true
284- }
285- }
286- }
279+
287280
288281impl Externs {
289282 pub fn new ( data : BTreeMap < String , BTreeSet < ExternEntry > > ) -> Externs {
@@ -2676,6 +2669,15 @@ mod tests {
26762669 use syntax;
26772670 use super :: Options ;
26782671
2672+ impl ExternEntry {
2673+ fn new_public ( location : Option < String > ) -> ExternEntry {
2674+ ExternEntry {
2675+ location,
2676+ public : true
2677+ }
2678+ }
2679+ }
2680+
26792681 fn optgroups ( ) -> getopts:: Options {
26802682 let mut opts = getopts:: Options :: new ( ) ;
26812683 for group in super :: rustc_optgroups ( ) {
You can’t perform that action at this time.
0 commit comments