Skip to content

Commit 68bd9c6

Browse files
committed
Update tests.
1 parent ca2ab07 commit 68bd9c6

File tree

52 files changed

+177
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+177
-125
lines changed

tests/ui/associated-types/issue-91231.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![feature(extern_types)]
44
#![allow(dead_code)]
55

6-
extern {
6+
extern "C" {
77
type Extern;
88
}
99

tests/ui/attributes/key-value-expansion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bug!();
3939
macro_rules! doc_comment {
4040
($x:expr) => {
4141
#[doc = $x]
42-
extern {}
42+
extern "C" {}
4343
};
4444
}
4545

tests/ui/borrowck/issue-92157.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#[cfg(target_os = "linux")]
77
#[link(name = "c")]
8-
extern {}
8+
extern "C" {}
99

1010
#[lang = "start"]
1111
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {

tests/ui/coherence/coherence-negative-impls-copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl !Copy for WithDrop {}
1818

1919
struct Type;
2020
trait Trait {}
21-
extern {
21+
extern "C" {
2222
type ExternType;
2323
}
2424

tests/ui/conditional-compilation/cfg_accessible-not_sure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const B: bool = true;
6363

6464
// ForeignType::unresolved - error
6565

66-
extern {
66+
extern "C" {
6767
type ForeignType;
6868
}
6969

tests/ui/consts/const-eval/validation-ice-extern-type-field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![feature(extern_types)]
22

3-
extern {
3+
extern "C" {
44
type Opaque;
55
}
66

tests/ui/delegation/glob-non-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait OtherTrait {
1111
reuse Trait::*; //~ ERROR glob delegation is only supported in impls
1212
}
1313

14-
extern {
14+
extern "C" {
1515
reuse Trait::*; //~ ERROR delegation is not supported in `extern` blocks
1616
}
1717

tests/ui/extern/extern-type-diag-not-similar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
// because they are both extern types.
55

66
#![feature(extern_types)]
7-
extern {
7+
extern "C" {
88
type ShouldNotBeMentioned;
99
}
1010

11-
extern {
11+
extern "C" {
1212
type Foo;
1313
}
1414

tests/ui/extern/issue-10025.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ run-pass
22
//@ pretty-expanded FIXME #23616
3-
#![allow(dead_code)]
3+
#![allow(dead_code, missing_abi)]
44

55
unsafe extern fn foo() {}
66
unsafe extern "C" fn bar() {}

tests/ui/extern/issue-95829.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ edition:2018
22

3-
extern {
3+
extern "C" {
44
async fn L() { //~ ERROR: incorrect function inside `extern` block
55
//~^ ERROR: functions in `extern` blocks cannot have `async` qualifier
66
async fn M() {}

0 commit comments

Comments
 (0)