]> git.lizzy.rs Git - rust.git/commitdiff
Move new_public to 'tess' module
authorAaron Hill <aa1ronham@gmail.com>
Sun, 7 Apr 2019 00:39:12 +0000 (20:39 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 14 Apr 2019 19:45:18 +0000 (15:45 -0400)
src/librustc/session/config.rs

index bf0e4a77777750294b1b5fa467509fce7812f77f..474848fbaf345617984dc619f52a29a117dc4bbb 100644 (file)
@@ -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 {
@@ -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() {