forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow ClashingExternDecl for lint-dead-code-3 - Update test case for rust-lang#5791 - Update test case for rust-lang#1866 - Update extern-abi-from-macro test case
- Loading branch information
Showing
8 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
warning: `rust_task_is_unwinding` redeclared with a different signature | ||
--> $DIR/issue-1866.rs:23:13 | ||
| | ||
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool; | ||
| ------------------------------------------------------------ `rust_task_is_unwinding` previously declared here | ||
... | ||
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/issue-1866.rs:4:9 | ||
| | ||
LL | #![warn(clashing_extern_decl)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
= note: expected `unsafe extern "C" fn(*const usize) -> bool` | ||
found `unsafe extern "C" fn(*const bool) -> bool` | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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_decl)] | ||
| ^^^^^^^^^^^^^^^^^^^^ | ||
= note: expected `unsafe extern "C" fn(i32) -> *const u8` | ||
found `unsafe extern "C" fn(i32, i32) -> *const u8` | ||
|
||
warning: 1 warning emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters