Skip to content

Commit 6b10a20

Browse files
Changes to the uitests
1 parent 6ad5110 commit 6b10a20

27 files changed

+352
-267
lines changed

compiler/rustc_error_codes/src/error_codes/E0458.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
An unknown "kind" was specified for a link attribute.
24

35
Erroneous code example:
46

5-
```compile_fail,E0458
7+
```ignore (no longer emitted)
68
#[link(kind = "wonderful_unicorn")] extern "C" {}
79
// error: unknown kind: `wonderful_unicorn`
810
```

tests/crashes/120175.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
//@ needs-rustc-debug-assertions
33

44
#![feature(extern_types)]
5+
#![feature(raw_dylib_elf)]
56

6-
#[link(name = "bar", import_name_type = "decorated", kind = "raw-dylib")]
7+
#[link(name = "bar", kind = "raw-dylib")]
78
extern "C" {
89
pub type CrossCrate;
910
}

tests/ui/attributes/malformed-attrs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@
8181
#[export_stable = 1]
8282
//~^ ERROR malformed
8383
#[link]
84-
//~^ ERROR attribute must be of the form
85-
//~| WARN this was previously accepted by the compiler
84+
//~^ ERROR malformed
8685
#[link_name]
8786
//~^ ERROR malformed
8887
#[link_section]

0 commit comments

Comments
 (0)