summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_metadata/src/native_libs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_metadata/src/native_libs.rs')
-rw-r--r--compiler/rustc_metadata/src/native_libs.rs20
1 files changed, 1 insertions, 19 deletions
diff --git a/compiler/rustc_metadata/src/native_libs.rs b/compiler/rustc_metadata/src/native_libs.rs
index b855c8e43..c83c47e72 100644
--- a/compiler/rustc_metadata/src/native_libs.rs
+++ b/compiler/rustc_metadata/src/native_libs.rs
@@ -161,14 +161,6 @@ impl<'tcx> Collector<'tcx> {
"raw-dylib" => {
if !sess.target.is_like_windows {
sess.emit_err(errors::FrameworkOnlyWindows { span });
- } else if !features.raw_dylib && sess.target.arch == "x86" {
- feature_err(
- &sess.parse_sess,
- sym::raw_dylib,
- span,
- "link kind `raw-dylib` is unstable on x86",
- )
- .emit();
}
NativeLibKind::RawDylib
}
@@ -251,16 +243,6 @@ impl<'tcx> Collector<'tcx> {
continue;
}
};
- if !features.raw_dylib {
- let span = item.name_value_literal_span().unwrap();
- feature_err(
- &sess.parse_sess,
- sym::raw_dylib,
- span,
- "import name type is unstable",
- )
- .emit();
- }
import_name_type = Some((link_import_name_type, item.span()));
}
_ => {
@@ -287,7 +269,7 @@ impl<'tcx> Collector<'tcx> {
&sess.parse_sess,
sym::$feature,
span,
- &format!("linking modifier `{modifier}` is unstable"),
+ format!("linking modifier `{modifier}` is unstable"),
)
.emit();
}