From ba8e61e9e826c13828c361e82ffa3d0f2f14238b Mon Sep 17 00:00:00 2001 From: arshalaromal Date: Mon, 8 Jun 2026 10:07:52 +0530 Subject: [PATCH] test: remove ineffective link-extern-crate-with-drop-type test --- .../link-extern-crate-with-drop-type.rs | 19 ------------------- .../link-extern-crate-with-drop-type.rs | 11 ----------- 2 files changed, 30 deletions(-) delete mode 100644 tests/ui/cross-crate/auxiliary/link-extern-crate-with-drop-type.rs delete mode 100644 tests/ui/cross-crate/link-extern-crate-with-drop-type.rs diff --git a/tests/ui/cross-crate/auxiliary/link-extern-crate-with-drop-type.rs b/tests/ui/cross-crate/auxiliary/link-extern-crate-with-drop-type.rs deleted file mode 100644 index e498dd0758cef..0000000000000 --- a/tests/ui/cross-crate/auxiliary/link-extern-crate-with-drop-type.rs +++ /dev/null @@ -1,19 +0,0 @@ -//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/20389 -fn foo(_x: i32) { -} - -pub struct rsrc { - x: i32, -} - -impl Drop for rsrc { - fn drop(&mut self) { - foo(self.x); - } -} - -pub fn rsrc(x: i32) -> rsrc { - rsrc { - x: x - } -} diff --git a/tests/ui/cross-crate/link-extern-crate-with-drop-type.rs b/tests/ui/cross-crate/link-extern-crate-with-drop-type.rs deleted file mode 100644 index 623a644dcbf9f..0000000000000 --- a/tests/ui/cross-crate/link-extern-crate-with-drop-type.rs +++ /dev/null @@ -1,11 +0,0 @@ -//@ run-pass -//@ aux-build:link-extern-crate-with-drop-type.rs -//! Regression test for https://github.com/rust-lang/rust/issues/2170 -//! This test just verifies that linking against an external crate works without -//! a metadata failure. Apparently, having a Drop that calls another function is the trigger. - -extern crate link_extern_crate_with_drop_type; - -pub fn main() { - // let _ = issue_2170_lib::rsrc(2); -}