"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/test/ui/mir/mir_detects_invalid_ops.stderr" between
rustc-1.45.0-src.tar.xz and rustc-1.45.2-src.tar.xz

About: Rust is a systems programming language that runs "blazingly fast, prevents nearly all segfaults, and guarantees thread safety" (developed by Mozilla).

mir_detects_invalid_ops.stderr  (rustc-1.45.0-src.tar.xz):mir_detects_invalid_ops.stderr  (rustc-1.45.2-src.tar.xz)
skipping to change at line 15 skipping to change at line 15
| ^^^^^ attempt to divide by zero | ^^^^^ attempt to divide by zero
| |
= note: `#[deny(unconditional_panic)]` on by default = note: `#[deny(unconditional_panic)]` on by default
error: this operation will panic at runtime error: this operation will panic at runtime
--> $DIR/mir_detects_invalid_ops.rs:16:14 --> $DIR/mir_detects_invalid_ops.rs:16:14
| |
LL | let _z = 1 % y; LL | let _z = 1 % y;
| ^^^^^ attempt to calculate the remainder with a divisor of zer o | ^^^^^ attempt to calculate the remainder with a divisor of zer o
error: this operation will panic at runtime error: aborting due to 2 previous errors
--> $DIR/mir_detects_invalid_ops.rs:22:18
|
LL | let _b = (*a)[3];
| ^^^^^^^ index out of bounds: the len is 3 but the index is
3
error: aborting due to 3 previous errors
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)