Rollup merge of - Mark-Simulacrum:deignore-tests, r=nikomatsakis

Updates to some ignored tests

This removes or fixes some ignored test cases.

cc 
This commit is contained in:
Dylan DPC 2020-05-05 01:49:37 +02:00 committed by GitHub
commit 04776b15a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 34 deletions
src/test

View File

@ -1,10 +1,10 @@
// aux-build:issue-27362.rs
// aux-build:issue-27362-aux.rs
// ignore-cross-compile
// ignore-test This test fails on beta/stable #32019
extern crate issue_27362;
pub use issue_27362 as quux;
extern crate issue_27362_aux;
// @matches issue_27362/quux/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/quux/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/quux/struct.Foo.html '//code' "const unsafe fn baz()"
pub use issue_27362_aux::*;
// @matches issue_27362/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/struct.Foo.html '//code' "const unsafe fn baz()"

View File

@ -1,14 +0,0 @@
// Test that we use fully-qualified type names in error messages.
// ignore-test
type T1 = usize;
type T2 = isize;
fn bar(x: T1) -> T2 {
return x;
//~^ ERROR mismatched types: expected `T2`, found `T1`
}
fn main() {
}

View File

@ -1,13 +0,0 @@
// ignore-test the unsized enum no longer compiles
enum A {
B(char),
C([Box<A>]),
}
fn c(c:char) {
A::B(c);
//~^ ERROR cannot move a value of type A: the size of A cannot be statically determined
}
pub fn main() {}