fix tests
This commit is contained in:
parent
8c5292eb8f
commit
d2e183fd99
@ -353,7 +353,7 @@ impl<'rt, 'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>>
|
||||
match self.ecx.memory.check_align(ptr, align) {
|
||||
Ok(_) => {},
|
||||
Err(err) => {
|
||||
error!("{:?} is not aligned to {:?}", ptr, align);
|
||||
info!("{:?} is not aligned to {:?}", ptr, align);
|
||||
match err.kind {
|
||||
InterpError::InvalidNullPointerUsage =>
|
||||
return validation_failure!("NULL reference", self.path),
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `a(b=c)` (expected `key` or `key="value"`)
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `a{b}` (expected `key` or `key="value"`)
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `a::b` (argument key must be an identifier)
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `a(b)` (expected `key` or `key="value"`)
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `a=10` (argument value must be a string)
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: invalid `--cfg` argument: `""` (expected `key` or `key="value"`)
|
||||
|
13
src/test/ui/pattern/const-pat-ice.stderr
Normal file
13
src/test/ui/pattern/const-pat-ice.stderr
Normal file
@ -0,0 +1,13 @@
|
||||
thread 'rustc' panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())', src/librustc_mir/hair/pattern/_match.rs:1069:5
|
||||
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
|
||||
|
||||
error: internal compiler error: unexpected panic
|
||||
|
||||
note: the compiler unexpectedly panicked. this is a bug.
|
||||
|
||||
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
|
||||
|
||||
note: rustc 1.35.0-dev running on x86_64-unknown-linux-gnu
|
||||
|
||||
note: compiler flags: -Z threads=1 -Z ui-testing -Z unstable-options -C prefer-dynamic -C rpath
|
||||
|
Loading…
x
Reference in New Issue
Block a user