From 0be21b05d6811936a22d491f2cea4c7fe244ce2f Mon Sep 17 00:00:00 2001 From: Francesco Zardi Date: Wed, 21 Oct 2020 21:53:05 +0200 Subject: Move safe intrinsic tests --- crates/hir_def/src/item_tree/tests.rs | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'crates/hir_def/src/item_tree') diff --git a/crates/hir_def/src/item_tree/tests.rs b/crates/hir_def/src/item_tree/tests.rs index 495c5a7e9..4b354c4c1 100644 --- a/crates/hir_def/src/item_tree/tests.rs +++ b/crates/hir_def/src/item_tree/tests.rs @@ -437,23 +437,3 @@ fn assoc_item_macros() { "#]], ); } - -#[test] -fn safe_intrinsic() { - check( - r" - #![feature(core_intrinsics)] - - fn reverse(input: u32) -> u32 { - std::intrinsics::bitreverse(input) - } - ", - expect![[r#" - inner attrs: Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("feature"))] }, input: Some(TokenTree(SUBTREE () 0 - IDENT core_intrinsics 1)) }]) } - - top-level items: - Function { name: Name(Text("reverse")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(4294967295), has_self_param: false, has_body: true, is_unsafe: false, params: [Path(Path { type_anchor: None, mod_path: ModPath { kind: Plain, segments: [Name(Text("u32"))] }, generic_args: [None] })], is_varargs: false, ret_type: Path(Path { type_anchor: None, mod_path: ModPath { kind: Plain, segments: [Name(Text("u32"))] }, generic_args: [None] }), ast_id: FileAstId::(0) } - "#]], - ); -} -- cgit v1.2.3