Skip to content

Commit 9c4f3db

Browse files
committed
Remove references to maybe_whole_expr.
It was removed in #126571.
1 parent 8cb6bc3 commit 9c4f3db

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/rustc_ast/src/token.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,7 @@ impl Token {
699699
false
700700
}
701701

702-
/// Would `maybe_whole_expr` in `parser.rs` return `Ok(..)`?
703-
/// That is, is this a pre-parsed expression dropped into the token stream
702+
/// Is this a pre-parsed expression dropped into the token stream
704703
/// (which happens while parsing the result of macro expansion)?
705704
pub fn is_whole_expr(&self) -> bool {
706705
if let Interpolated(nt) = &self.kind

compiler/rustc_parse/src/parser/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ pub enum TrailingToken {
101101
MaybeComma,
102102
}
103103

104-
/// Like `maybe_whole_expr`, but for things other than expressions.
105104
#[macro_export]
106105
macro_rules! maybe_whole {
107106
($p:expr, $constructor:ident, |$x:ident| $e:expr) => {

0 commit comments

Comments
 (0)