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); -}