diff options
| author | Michael Goulet <michael@errs.io> | 2025-07-31 02:12:32 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-07-31 02:28:11 +0000 |
| commit | 51cd9b564f75b8330893b919b90e293530d1c395 (patch) | |
| tree | b039f6db349597df2c8fc8076cb092443d06b93f /compiler/rustc_parse/src/validate_attr.rs | |
| parent | e5e79f8bd428d0b8d26e8240d718b134ef297459 (diff) | |
| download | rust-51cd9b564f75b8330893b919b90e293530d1c395.tar.gz rust-51cd9b564f75b8330893b919b90e293530d1c395.zip | |
Consider operator's span when computing binop expr span
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index bc4c605afad..a7f8d3b9139 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -106,7 +106,7 @@ pub fn parse_meta<'a>(psess: &'a ParseSess, attr: &Attribute) -> PResult<'a, Met res } else { // Example cases: - // - `#[foo = 1+1]`: results in `ast::ExprKind::BinOp`. + // - `#[foo = 1+1]`: results in `ast::ExprKind::Binary`. // - `#[foo = include_str!("nonexistent-file.rs")]`: // results in `ast::ExprKind::Err`. In that case we delay // the error because an earlier error will have already |
