Add unwrap_unsafe_binder and wrap_unsafe_binder macro operators
This commit is contained in:
@@ -1542,6 +1542,19 @@ impl<'a> State<'a> {
|
||||
|
||||
self.word(")");
|
||||
}
|
||||
hir::ExprKind::UnsafeBinderCast(kind, expr, ty) => {
|
||||
match kind {
|
||||
hir::UnsafeBinderCastKind::Wrap => self.word("wrap_binder!("),
|
||||
hir::UnsafeBinderCastKind::Unwrap => self.word("unwrap_binder!("),
|
||||
}
|
||||
self.print_expr(expr);
|
||||
if let Some(ty) = ty {
|
||||
self.word(",");
|
||||
self.space();
|
||||
self.print_type(ty);
|
||||
}
|
||||
self.word(")");
|
||||
}
|
||||
hir::ExprKind::Yield(expr, _) => {
|
||||
self.word_space("yield");
|
||||
self.print_expr_cond_paren(expr, expr.precedence() < ExprPrecedence::Jump);
|
||||
|
||||
Reference in New Issue
Block a user