@@ -12,7 +12,7 @@ use crate::build::expr::as_constant::as_constant_inner;
1212use super :: { parse_by_kind, PResult , ParseCtxt } ;
1313
1414impl < ' tcx , ' body > ParseCtxt < ' tcx , ' body > {
15- pub fn parse_statement ( & self , expr_id : ExprId ) -> PResult < StatementKind < ' tcx > > {
15+ pub ( crate ) fn parse_statement ( & self , expr_id : ExprId ) -> PResult < StatementKind < ' tcx > > {
1616 parse_by_kind ! ( self , expr_id, _, "statement" ,
1717 @call( mir_storage_live, args) => {
1818 Ok ( StatementKind :: StorageLive ( self . parse_local( args[ 0 ] ) ?) )
@@ -46,7 +46,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
4646 )
4747 }
4848
49- pub fn parse_terminator ( & self , expr_id : ExprId ) -> PResult < TerminatorKind < ' tcx > > {
49+ pub ( crate ) fn parse_terminator ( & self , expr_id : ExprId ) -> PResult < TerminatorKind < ' tcx > > {
5050 parse_by_kind ! ( self , expr_id, expr, "terminator" ,
5151 @call( mir_return, _args) => {
5252 Ok ( TerminatorKind :: Return )
@@ -261,7 +261,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
261261 )
262262 }
263263
264- pub fn parse_operand ( & self , expr_id : ExprId ) -> PResult < Operand < ' tcx > > {
264+ pub ( crate ) fn parse_operand ( & self , expr_id : ExprId ) -> PResult < Operand < ' tcx > > {
265265 parse_by_kind ! ( self , expr_id, expr, "operand" ,
266266 @call( mir_move, args) => self . parse_place( args[ 0 ] ) . map( Operand :: Move ) ,
267267 @call( mir_static, args) => self . parse_static( args[ 0 ] ) ,
0 commit comments