Rollup merge of #88883 - c410-f3r:tests, r=petrochenkov
Move some tests to more reasonable directories - 7 cc #73494 r? ``@petrochenkov``
This commit is contained in:
commit
5e910373f1
@ -1,14 +0,0 @@
|
||||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
#![warn(clashing_extern_declarations)]
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
extern "C" {
|
||||
#[link_name = "malloc"]
|
||||
fn malloc1(len: i32) -> *const u8;
|
||||
#[link_name = "malloc"]
|
||||
//~^ WARN `malloc2` redeclares `malloc` with a different signature
|
||||
fn malloc2(len: i32, foo: i32) -> *const u8;
|
||||
}
|
||||
|
||||
pub fn main() {}
|
@ -1,21 +0,0 @@
|
||||
warning: `malloc2` redeclares `malloc` with a different signature
|
||||
--> $DIR/issue-5791.rs:9:5
|
||||
|
|
||||
LL | / #[link_name = "malloc"]
|
||||
LL | | fn malloc1(len: i32) -> *const u8;
|
||||
| |______________________________________- `malloc` previously declared here
|
||||
LL | / #[link_name = "malloc"]
|
||||
LL | |
|
||||
LL | | fn malloc2(len: i32, foo: i32) -> *const u8;
|
||||
| |________________________________________________^ this signature doesn't match the previous declaration
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/issue-5791.rs:3:9
|
||||
|
|
||||
LL | #![warn(clashing_extern_declarations)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: expected `unsafe extern "C" fn(i32) -> *const u8`
|
||||
found `unsafe extern "C" fn(i32, i32) -> *const u8`
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
const ENTRY_LIMIT: usize = 1000;
|
||||
// FIXME: The following limits should be reduced eventually.
|
||||
const ROOT_ENTRY_LIMIT: usize = 1345;
|
||||
const ISSUES_ENTRY_LIMIT: usize = 2525;
|
||||
const ROOT_ENTRY_LIMIT: usize = 1330;
|
||||
const ISSUES_ENTRY_LIMIT: usize = 2488;
|
||||
|
||||
fn check_entries(path: &Path, bad: &mut bool) {
|
||||
let dirs = walkdir::WalkDir::new(&path.join("test/ui"))
|
||||
|
Loading…
Reference in New Issue
Block a user