-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,12 @@ fn test_alias<I: Iterator>(i: Option<<I as Iterator>::Item>) { | |
let y = x.1; | ||
} | ||
|
||
// 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 commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
} | ||
|
||
struct TupStruct(isize, isize, Box<str>); | ||
|
||
fn test_tup_struct(x: TupStruct) -> isize { | ||
|
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