Rollup merge of #125409 - tbu-:pr_raw_dylib_only_windows, r=lcnr
Rename `FrameworkOnlyWindows` to `RawDylibOnlyWindows` Frameworks are Apple-specific, no idea why it had "framework" in the name before.
This commit is contained in:
commit
c9e457dbd6
@ -91,9 +91,6 @@ metadata_found_staticlib =
|
|||||||
found staticlib `{$crate_name}` instead of rlib or dylib{$add_info}
|
found staticlib `{$crate_name}` instead of rlib or dylib{$add_info}
|
||||||
.help = please recompile that crate using --crate-type lib
|
.help = please recompile that crate using --crate-type lib
|
||||||
|
|
||||||
metadata_framework_only_windows =
|
|
||||||
link kind `raw-dylib` is only supported on Windows targets
|
|
||||||
|
|
||||||
metadata_global_alloc_required =
|
metadata_global_alloc_required =
|
||||||
no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait
|
no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait
|
||||||
|
|
||||||
@ -233,6 +230,9 @@ metadata_profiler_builtins_needs_core =
|
|||||||
metadata_raw_dylib_no_nul =
|
metadata_raw_dylib_no_nul =
|
||||||
link name must not contain NUL characters if link kind is `raw-dylib`
|
link name must not contain NUL characters if link kind is `raw-dylib`
|
||||||
|
|
||||||
|
metadata_raw_dylib_only_windows =
|
||||||
|
link kind `raw-dylib` is only supported on Windows targets
|
||||||
|
|
||||||
metadata_renaming_no_link =
|
metadata_renaming_no_link =
|
||||||
renaming of the library `{$lib_name}` was specified, however this crate contains no `#[link(...)]` attributes referencing this library
|
renaming of the library `{$lib_name}` was specified, however this crate contains no `#[link(...)]` attributes referencing this library
|
||||||
|
|
||||||
|
@ -142,8 +142,8 @@ pub struct LinkFrameworkApple {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Diagnostic)]
|
#[derive(Diagnostic)]
|
||||||
#[diag(metadata_framework_only_windows, code = E0455)]
|
#[diag(metadata_raw_dylib_only_windows, code = E0455)]
|
||||||
pub struct FrameworkOnlyWindows {
|
pub struct RawDylibOnlyWindows {
|
||||||
#[primary_span]
|
#[primary_span]
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ fn process_module(&mut self, module: &ForeignModule) {
|
|||||||
}
|
}
|
||||||
"raw-dylib" => {
|
"raw-dylib" => {
|
||||||
if !sess.target.is_like_windows {
|
if !sess.target.is_like_windows {
|
||||||
sess.dcx().emit_err(errors::FrameworkOnlyWindows { span });
|
sess.dcx().emit_err(errors::RawDylibOnlyWindows { span });
|
||||||
}
|
}
|
||||||
NativeLibKind::RawDylib
|
NativeLibKind::RawDylib
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user