@@ -12,7 +12,7 @@ use crate::build::expr::as_constant::as_constant_inner;
12
12
use super :: { parse_by_kind, PResult , ParseCtxt } ;
13
13
14
14
impl < ' 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 > > {
16
16
parse_by_kind ! ( self , expr_id, _, "statement" ,
17
17
@call( mir_storage_live, args) => {
18
18
Ok ( StatementKind :: StorageLive ( self . parse_local( args[ 0 ] ) ?) )
@@ -46,7 +46,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
46
46
)
47
47
}
48
48
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 > > {
50
50
parse_by_kind ! ( self , expr_id, expr, "terminator" ,
51
51
@call( mir_return, _args) => {
52
52
Ok ( TerminatorKind :: Return )
@@ -261,7 +261,7 @@ impl<'tcx, 'body> ParseCtxt<'tcx, 'body> {
261
261
)
262
262
}
263
263
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 > > {
265
265
parse_by_kind ! ( self , expr_id, expr, "operand" ,
266
266
@call( mir_move, args) => self . parse_place( args[ 0 ] ) . map( Operand :: Move ) ,
267
267
@call( mir_static, args) => self . parse_static( args[ 0 ] ) ,
0 commit comments