-
Notifications
You must be signed in to change notification settings - Fork 13.4k
add visit_operand
to const prop
#74507
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 2 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 |
---|---|---|
|
@@ -64,13 +64,25 @@ | |
+ // mir::Constant | ||
+ // + span: $DIR/array_index.rs:5:18: 5:33 | ||
+ // + literal: Const { ty: bool, val: Value(Scalar(0x01)) } | ||
+ assert(const true, "index out of bounds: the len is {} but the index is {}", move _4, _3) -> bb1; // scope 0 at $DIR/array_index.rs:5:18: 5:33 | ||
+ assert(const true, "index out of bounds: the len is {} but the index is {}", const 4_usize, const 2_usize) -> bb1; // scope 0 at $DIR/array_index.rs:5:18: 5:33 | ||
+ // ty::Const | ||
+ // + ty: bool | ||
+ // + val: Value(Scalar(0x01)) | ||
+ // mir::Constant | ||
+ // + span: $DIR/array_index.rs:5:18: 5:33 | ||
+ // + literal: Const { ty: bool, val: Value(Scalar(0x01)) } | ||
+ // ty::Const | ||
+ // + ty: usize | ||
+ // + val: Value(Scalar(0x00000004)) | ||
+ // mir::Constant | ||
+ // + span: $DIR/array_index.rs:5:18: 5:33 | ||
+ // + literal: Const { ty: usize, val: Value(Scalar(0x00000004)) } | ||
+ // ty::Const | ||
+ // + ty: usize | ||
+ // + val: Value(Scalar(0x00000002)) | ||
+ // mir::Constant | ||
+ // + span: $DIR/array_index.rs:5:18: 5:33 | ||
+ // + literal: Const { ty: usize, val: Value(Scalar(0x00000002)) } | ||
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. oh god these comments are really annoying 😆 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 really wish there rwas a way to suppress all the comments in MIR dumps 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. |
||
} | ||
|
||
bb1: { | ||
|
Uh oh!
There was an error while loading. Please reload this page.