Auto merge of #121516 - RalfJung:platform-intrinsics-begone, r=oli-obk
remove platform-intrinsics ABI; make SIMD intrinsics be regular intrinsics `@Amanieu` `@workingjubilee` I don't think there is any reason these need to be "special"? The [original RFC](https://rust-lang.github.io/rfcs/1199-simd-infrastructure.html) indicated eventually making them stable, but I think that is no longer the plan, so seems to me like we can clean this up a bit. Blocked on https://github.com/rust-lang/stdarch/pull/1538, https://github.com/rust-lang/rust/pull/121542.
This commit is contained in:
commit
5c786a7fe3
114 changed files with 416 additions and 448 deletions
|
@ -1389,7 +1389,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
if target == Target::ForeignMod
|
||||
&& let hir::Node::Item(item) = self.tcx.hir_node(hir_id)
|
||||
&& let Item { kind: ItemKind::ForeignMod { abi, .. }, .. } = item
|
||||
&& !matches!(abi, Abi::Rust | Abi::RustIntrinsic | Abi::PlatformIntrinsic)
|
||||
&& !matches!(abi, Abi::Rust | Abi::RustIntrinsic)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -2071,7 +2071,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
) -> bool {
|
||||
if let Target::ForeignFn = target
|
||||
&& let hir::Node::Item(Item {
|
||||
kind: ItemKind::ForeignMod { abi: Abi::RustIntrinsic | Abi::PlatformIntrinsic, .. },
|
||||
kind: ItemKind::ForeignMod { abi: Abi::RustIntrinsic, .. },
|
||||
..
|
||||
}) = self.tcx.parent_hir_node(hir_id)
|
||||
{
|
||||
|
|
|
@ -173,10 +173,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
|
|||
// If the current node is a function, has const stability attributes and if it doesn not have an intrinsic ABI,
|
||||
// check if the function/method is const or the parent impl block is const
|
||||
if let (Some(const_span), Some(fn_sig)) = (const_span, fn_sig) {
|
||||
if fn_sig.header.abi != Abi::RustIntrinsic
|
||||
&& fn_sig.header.abi != Abi::PlatformIntrinsic
|
||||
&& !fn_sig.header.is_const()
|
||||
{
|
||||
if fn_sig.header.abi != Abi::RustIntrinsic && !fn_sig.header.is_const() {
|
||||
if !self.in_trait_impl
|
||||
|| (self.in_trait_impl && !self.tcx.is_const_fn_raw(def_id.to_def_id()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue