From 02c596e50a0305bdd51603290850ca8a920190ce Mon Sep 17 00:00:00 2001 From: Kunshan Wang Date: Sat, 7 Sep 2024 14:32:29 +0800 Subject: [PATCH] Remove redundant `extern crate`. --- docs/dummyvm/src/lib.rs | 3 --- macros/src/lib.rs | 5 ----- src/lib.rs | 5 ----- tests/test_address.rs | 2 -- 4 files changed, 15 deletions(-) diff --git a/docs/dummyvm/src/lib.rs b/docs/dummyvm/src/lib.rs index 17c5abe9a3..e76b3ea757 100644 --- a/docs/dummyvm/src/lib.rs +++ b/docs/dummyvm/src/lib.rs @@ -1,6 +1,3 @@ -extern crate libc; -extern crate mmtk; - use std::sync::OnceLock; use mmtk::vm::VMBinding; diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 64b08ee9b6..4a8b6e5a19 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -1,8 +1,3 @@ -extern crate proc_macro; -extern crate proc_macro_error; -extern crate quote; -extern crate syn; - use proc_macro::TokenStream; use proc_macro_error::proc_macro_error; use syn::parse_macro_input; diff --git a/src/lib.rs b/src/lib.rs index eb21091ad4..def57e4756 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,15 +27,10 @@ //! i.e. [the memory manager API](memory_manager/index.html) that allows a language's memory manager to use MMTk //! and [the VMBinding trait](vm/trait.VMBinding.html) that allows MMTk to call the language implementation. -extern crate libc; -extern crate strum_macros; #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; -extern crate atomic_traits; -extern crate crossbeam; -extern crate num_cpus; #[macro_use] extern crate downcast_rs; #[macro_use] diff --git a/tests/test_address.rs b/tests/test_address.rs index c430469945..85417905ea 100644 --- a/tests/test_address.rs +++ b/tests/test_address.rs @@ -1,5 +1,3 @@ -extern crate mmtk; - use mmtk::util::Address; #[test]