about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-16 13:23:46 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-10-16 17:21:32 +0200
commit1a26fdf9b2c818186e23188b4dc47349e4133b1a (patch)
tree20012934c57bbd06283b4056dbc5cf6b419d6192 /src/libsyntax
parentbe40bbd2fb7e077b27d346a0b9249d309b9ca690 (diff)
downloadrust-1a26fdf9b2c818186e23188b4dc47349e4133b1a.tar.gz
rust-1a26fdf9b2c818186e23188b4dc47349e4133b1a.zip
ui-fulldeps: make them pass again?
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs2
-rw-r--r--src/libsyntax/parse/parser/attr.rs2
-rw-r--r--src/libsyntax/parse/parser/module.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 79901177d18..9cb410a8ae3 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1,4 +1,4 @@
-mod attr;
+pub mod attr;
 mod expr;
 mod pat;
 mod item;
diff --git a/src/libsyntax/parse/parser/attr.rs b/src/libsyntax/parse/parser/attr.rs
index 463629de7a1..6f7d1ead4c1 100644
--- a/src/libsyntax/parse/parser/attr.rs
+++ b/src/libsyntax/parse/parser/attr.rs
@@ -65,7 +65,7 @@ impl<'a> Parser<'a> {
     ///
     /// If `permit_inner` is `true`, then a leading `!` indicates an inner
     /// attribute.
-    fn parse_attribute(&mut self, permit_inner: bool) -> PResult<'a, ast::Attribute> {
+    pub fn parse_attribute(&mut self, permit_inner: bool) -> PResult<'a, ast::Attribute> {
         debug!("parse_attribute: permit_inner={:?} self.token={:?}",
                permit_inner,
                self.token);
diff --git a/src/libsyntax/parse/parser/module.rs b/src/libsyntax/parse/parser/module.rs
index 3e88c98b856..a0e4d2bbb7a 100644
--- a/src/libsyntax/parse/parser/module.rs
+++ b/src/libsyntax/parse/parser/module.rs
@@ -26,7 +26,7 @@ pub(super) struct ModulePathSuccess {
 
 impl<'a> Parser<'a> {
     /// Parses a source module as a crate. This is the main entry point for the parser.
-    crate fn parse_crate_mod(&mut self) -> PResult<'a, Crate> {
+    pub fn parse_crate_mod(&mut self) -> PResult<'a, Crate> {
         let lo = self.token.span;
         let krate = Ok(ast::Crate {
             attrs: self.parse_inner_attributes()?,