From 055d3798d40ca0eefa52fa152bf3c913240281af Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 31 Aug 2019 16:03:54 +0300 Subject: reduce visibility --- src/libsyntax/util/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/util') diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index a501541c959..fceaed360cd 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -69,7 +69,7 @@ pub enum Fixity { impl AssocOp { /// Creates a new AssocOP from a token - pub fn from_token(t: &Token) -> Option { + crate fn from_token(t: &Token) -> Option { use AssocOp::*; match t.kind { token::BinOpEq(k) => Some(AssignOp(k)), -- cgit 1.4.1-3-g733a5