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/docs/userguide/src/migration/prefix.md b/docs/userguide/src/migration/prefix.md index fc25b775c3..f0f735dd45 100644 --- a/docs/userguide/src/migration/prefix.md +++ b/docs/userguide/src/migration/prefix.md @@ -80,7 +80,7 @@ See also: ## 0.27.0 -### `is_mmtk_object` returns `Option +### `is_mmtk_object` returns `Option` ```admonish tldr `memory_manager::is_mmtk_object` now returns `Option` instead of `bool`. 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/src/util/reference_processor.rs b/src/util/reference_processor.rs index f9339d7267..f997c16742 100644 --- a/src/util/reference_processor.rs +++ b/src/util/reference_processor.rs @@ -223,7 +223,7 @@ impl ReferenceProcessor { // These funcions call `trace_object()`, which will ensure the object and its descendents will // be traced. They are only called in steps that expand the transitive closure. That include - // retaining soft references, and (for MarkSweep) tracing objects for forwarding. + // retaining soft references, and (for MarkCompact) tracing objects for forwarding. // Note that finalizers also expand the transitive closure. // These functions are intended to make the code easier to understand. diff --git a/src/vm/reference_glue.rs b/src/vm/reference_glue.rs index 1b27b97ade..1f04c1c10e 100644 --- a/src/vm/reference_glue.rs +++ b/src/vm/reference_glue.rs @@ -28,7 +28,7 @@ pub trait ReferenceGlue { /// Get the referent from a weak reference object. /// /// Arguments: - /// * `object`: Reference to the referent. `None`` if the object currently does not point to a + /// * `object`: Reference to the referent. `None` if the object currently does not point to a /// referent. This may happen if the reference has been cleared. fn get_referent(object: ObjectReference) -> Option; 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]