diff options
| author | Michael Goulet <michael@errs.io> | 2023-03-04 02:23:36 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-28 01:02:15 +0000 |
| commit | fb9ca9223d42a13bc15bddd1c2dce506db2fcb21 (patch) | |
| tree | 7be29004c8a9b2c8c91b9cf84470b011bdf7f0c1 /compiler/rustc_ast | |
| parent | f50c1e1f0587d4a7e44946a909484f75a0a4c929 (diff) | |
| download | rust-fb9ca9223d42a13bc15bddd1c2dce506db2fcb21.tar.gz rust-fb9ca9223d42a13bc15bddd1c2dce506db2fcb21.zip | |
Feature gate
Diffstat (limited to 'compiler/rustc_ast')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index ab8b7f632e8..710c7ad3b2e 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -174,6 +174,10 @@ impl GenericArgs { matches!(self, AngleBracketed(..)) } + pub fn is_parenthesized(&self) -> bool { + matches!(self, Parenthesized(..)) + } + pub fn span(&self) -> Span { match self { AngleBracketed(data) => data.span, |
