You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo testrunning 1 testtest tests/ui/break-rust.rs ... errorExpected test case to fail to compile, but it succeeded.test ui ... FAILEDfailures:---- ui stdout ----thread 'ui' panicked at '1 of 1 tests failed', github.com-1ecc6299db9ec823/trybuild-1.0.61/src/run.rs:100:13note: run with `RUST_BACKTRACE=1` environment variable to display a backtracetest result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38serror: test failed, to rerun pass '--test compiletest'
Meanwhile the crate definitely fails to build and rustc exits with nonzero code.
thread 'rustc' panicked at 'range end index 2 out of range for slice of length 1', library/core/src/slice/index.rs:73:5stack backtrace: …error: internal compiler error: unexpected panicnote: the compiler unexpectedly panicked. this is a bug.note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.mdnote: rustc 1.63.0-nightly (a6b8c6954 2022-06-03) running on x86_64-unknown-linux-gnuquery stack during panic:#0 [typeck] type-checking `main`#1 [typeck_item_bodies] type-checking all item bodies#2 [analysis] running analysis passes on this crateend of query stack
The text was updated successfully, but these errors were encountered:
Oddly not every ICE hits this. For example changing tests/ui/break-rust.rs to:
fnmain(){break rust;}
$ cargo testrunning 1 testtest tests/ui/break-rust.rs ... wipNOTE: writing the following output to `wip/break-rust.stderr`.Move this file to `tests/ui/break-rust.stderr` to accept it as correct.┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈error[E0425]: cannot find value `rust` in this scope --> tests/ui/break-rust.rs:2:11 |2 | break rust; | ^^^^ not found in this scopeerror[E0268]: `break` outside of a loop --> tests/ui/break-rust.rs:2:5 |2 | break rust; | ^^^^^^^^^^ cannot `break` outside of a looperror: internal compiler error: It looks like you're trying to break rust; would you like some ICE?note: the compiler expectedly panicked. this is a feature.note: we would appreciate a joke overview: https://github.com/rust-lang/rust/issues/43162#issuecomment-320764675note: rustc 1.63.0-nightly (a6b8c6954 2022-06-03) running on x86_64-unknown-linux-gnu┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈test ui ... FAILEDfailures:---- ui stdout ----thread 'ui' panicked at 'successfully created new stderr files for 1 test cases', github.com-1ecc6299db9ec823/trybuild-1.0.61/src/run.rs:103:13note: run with `RUST_BACKTRACE=1` environment variable to display a backtracetest result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31serror: test failed, to rerun pass '--test compiletest'
For example the following ICE in nightly-2020-06-04 (rust-lang/rust#97698):
Meanwhile the crate definitely fails to build and rustc exits with nonzero code.
The text was updated successfully, but these errors were encountered: