diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-03-14 13:28:34 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-05-15 02:45:47 +0300 |
| commit | 4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6 (patch) | |
| tree | b4cdd23b4393d38383b89a25650f34dabf1ec378 /compiler/rustc_error_codes/src | |
| parent | 70b3681bf621bc0de91ffab711b2350068b4c466 (diff) | |
| download | rust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.tar.gz rust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.zip | |
rustc: Stricter checking for #[link] attributes
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0455.md | 5 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0458.md | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0455.md b/compiler/rustc_error_codes/src/error_codes/E0455.md index 84689b3ece6..437dacaff22 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0455.md +++ b/compiler/rustc_error_codes/src/error_codes/E0455.md @@ -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) diff --git a/compiler/rustc_error_codes/src/error_codes/E0458.md b/compiler/rustc_error_codes/src/error_codes/E0458.md index 359aeb6fd9a..1b280cba44f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0458.md +++ b/compiler/rustc_error_codes/src/error_codes/E0458.md @@ -12,3 +12,4 @@ Please specify a valid "kind" value, from one of the following: * static * dylib * framework +* raw-dylib |
