-
Notifications
You must be signed in to change notification settings - Fork 13.5k
save-analysis: handle << and >> operators inside [] in types #37776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit e003d05 has been approved by |
prev.tok.is_ident() { | ||
result = Some(prev.sp); | ||
} | ||
|
||
if bracket_count == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is a bit obscure. It seems like some comments might help to clarify what's going on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add
// Issue #37700 | ||
const LUT_BITS: usize = 3; | ||
pub struct HuffmanTable { | ||
ac_lut: Option<[(i16, u8); 1 << LUT_BITS]>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really get what the logic is above, but I am wondering if it is going to work for something like Option<[u8; foo(X > Y)]>
(where foo()
is a const fn
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it should do, that is kind of the point - this basically ignores any angle bracket-like tokens which occur inside [ ... ]
because they could be part of expressions.
e003d05
to
8a949df
Compare
📌 Commit 8a949df has been approved by |
save-analysis: handle << and >> operators inside [] in types Fixes #37700
Fixes #37700