integer overflow in parser angle bracket handling #119497
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-debug-assertions
This issue requires a build of rustc or tooling with debug-assertions in some way
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
the parser uses a
u16
to track angle brackets. This isn't exactly unreasonable, but not everyone writes reasonable code. Some people don't, and this makes the compiler sad. It should probably be au32
.https://github.com/boltlabs-inc/dialectic/tree/0d545aceb4a204b4d412e8fcf877ff2a41e35c3b/dialectic-macro
I expected to see this happen: no integer overflow
Instead, this happened: integer overflow
https://crater-reports.s3.amazonaws.com/pr-119440-1/try%23fe8f664b41f030f307cfeb6cb8c3a1419292aeed/reg/dialectic-macro-0.1.0/log.txt
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: