tidy check to find misc files in ui tests, and clean up the results
This commit is contained in:
parent
2f6bc5d259
commit
517ea5652a
12 changed files with 82 additions and 40 deletions
8
tests/ui/attr-bad-crate-attr.stderr
Normal file
8
tests/ui/attr-bad-crate-attr.stderr
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
error: expected item after attributes
|
||||
--> $DIR/attr-bad-crate-attr.rs:4:1
|
||||
|
|
||||
LL | #[attr = "val"] // Unterminated
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
@ -1,24 +1,26 @@
|
|||
// run-pass
|
||||
|
||||
// Regression test for a problem with the first mod attribute
|
||||
// being applied to every mod
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
#[cfg(target_os = "freebsd")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
#[cfg(target_os = "dragonfly")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
mod hello;
|
||||
mod hello {}
|
||||
|
||||
pub fn main() { }
|
||||
fn main() {}
|
||||
1
tests/ui/extern/auxiliary/invalid-utf8.txt
vendored
1
tests/ui/extern/auxiliary/invalid-utf8.txt
vendored
|
|
@ -1 +0,0 @@
|
|||
<EFBFBD>(
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
</AutoVisualizer>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#![crate_type = "lib"]
|
||||
|
||||
#[path = "issue-3136-a.rs"]
|
||||
pub mod issue_3136_a;
|
||||
|
|
@ -1,11 +1,14 @@
|
|||
#![crate_type = "lib"]
|
||||
|
||||
trait x {
|
||||
fn use_x<T>(&self);
|
||||
}
|
||||
struct y(());
|
||||
impl x for y {
|
||||
fn use_x<T>(&self) {
|
||||
struct foo { //~ ERROR quux
|
||||
i: ()
|
||||
struct foo {
|
||||
//~ ERROR quux
|
||||
i: (),
|
||||
}
|
||||
fn new_foo<T>(i: ()) -> foo {
|
||||
foo { i: i }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// run-pass
|
||||
// aux-build:issue-3136-a.rc
|
||||
// aux-build:issue-3136-a.rs
|
||||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,15 @@
|
|||
extern crate core;
|
||||
|
||||
fn assert_send<T:Send>() { }
|
||||
fn assert_send<T: Send>() {}
|
||||
|
||||
fn test70() {
|
||||
assert_send::<*mut isize>();
|
||||
//~^ ERROR `*mut isize` cannot be sent between threads safely
|
||||
}
|
||||
|
||||
fn test71<'a>() {
|
||||
assert_send::<*mut &'a isize>();
|
||||
//~^ ERROR `*mut &'a isize` cannot be sent between threads safely
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
fn assert_send<T:Send>() { }
|
||||
|
||||
// unsafe ptrs are ok unless they point at unsendable things
|
||||
fn test70() {
|
||||
assert_send::<*mut int>();
|
||||
}
|
||||
fn test71<'a>() {
|
||||
assert_send::<*mut &'a int>(); //~ ERROR does not fulfill the required lifetime
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
@ -1,16 +1,29 @@
|
|||
error[E0277]: `*mut &'a isize` cannot be sent between threads safely
|
||||
error[E0277]: `*mut isize` cannot be sent between threads safely
|
||||
--> $DIR/kindck-send-unsafe.rs:6:19
|
||||
|
|
||||
LL | assert_send::<*mut isize>();
|
||||
| ^^^^^^^^^^ `*mut isize` cannot be sent between threads safely
|
||||
|
|
||||
= help: the trait `Send` is not implemented for `*mut isize`
|
||||
note: required by a bound in `assert_send`
|
||||
--> $DIR/kindck-send-unsafe.rs:3:19
|
||||
|
|
||||
LL | fn assert_send<T: Send>() {}
|
||||
| ^^^^ required by this bound in `assert_send`
|
||||
|
||||
error[E0277]: `*mut &'a isize` cannot be sent between threads safely
|
||||
--> $DIR/kindck-send-unsafe.rs:11:19
|
||||
|
|
||||
LL | assert_send::<*mut &'a isize>();
|
||||
| ^^^^^^^^^^^^^^ `*mut &'a isize` cannot be sent between threads safely
|
||||
|
|
||||
= help: the trait `Send` is not implemented for `*mut &'a isize`
|
||||
note: required by a bound in `assert_send`
|
||||
--> $DIR/kindck-send-unsafe.rs:3:18
|
||||
--> $DIR/kindck-send-unsafe.rs:3:19
|
||||
|
|
||||
LL | fn assert_send<T:Send>() { }
|
||||
| ^^^^ required by this bound in `assert_send`
|
||||
LL | fn assert_send<T: Send>() {}
|
||||
| ^^^^ required by this bound in `assert_send`
|
||||
|
||||
error: aborting due to previous error
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0277`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue