rustc: Stricter checking for #[link] attributes
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
Some linking kinds are target-specific and not supported on all platforms.
|
||||
|
||||
Linking with `kind=framework` is only supported when targeting macOS,
|
||||
as frameworks are specific to that operating system.
|
||||
|
||||
Similarly, `kind=raw-dylib` is only supported when targeting Windows-like
|
||||
platforms.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```ignore (should-compile_fail-but-cannot-doctest-conditionally-without-macos)
|
||||
|
||||
@@ -12,3 +12,4 @@ Please specify a valid "kind" value, from one of the following:
|
||||
* static
|
||||
* dylib
|
||||
* framework
|
||||
* raw-dylib
|
||||
|
||||
Reference in New Issue
Block a user