Skip to content

Commit a025c24

Browse files
authored
Minor fixes (#1196)
Fixed typos in documents and comments. Removed redundant `extern crate` items.
1 parent 45cdf31 commit a025c24

File tree

7 files changed

+3
-18
lines changed

7 files changed

+3
-18
lines changed

docs/dummyvm/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate libc;
2-
extern crate mmtk;
3-
41
use std::sync::OnceLock;
52

63
use mmtk::vm::VMBinding;

docs/userguide/src/migration/prefix.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ See also:
8080

8181
## 0.27.0
8282

83-
### `is_mmtk_object` returns `Option<ObjectReference>
83+
### `is_mmtk_object` returns `Option<ObjectReference>`
8484

8585
```admonish tldr
8686
`memory_manager::is_mmtk_object` now returns `Option<ObjectReference>` instead of `bool`.

macros/src/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
extern crate proc_macro;
2-
extern crate proc_macro_error;
3-
extern crate quote;
4-
extern crate syn;
5-
61
use proc_macro::TokenStream;
72
use proc_macro_error::proc_macro_error;
83
use syn::parse_macro_input;

src/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@
2727
//! i.e. [the memory manager API](memory_manager/index.html) that allows a language's memory manager to use MMTk
2828
//! and [the VMBinding trait](vm/trait.VMBinding.html) that allows MMTk to call the language implementation.
2929
30-
extern crate libc;
31-
extern crate strum_macros;
3230
#[macro_use]
3331
extern crate lazy_static;
3432
#[macro_use]
3533
extern crate log;
36-
extern crate atomic_traits;
37-
extern crate crossbeam;
38-
extern crate num_cpus;
3934
#[macro_use]
4035
extern crate downcast_rs;
4136
#[macro_use]

src/util/reference_processor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl ReferenceProcessor {
223223

224224
// These funcions call `trace_object()`, which will ensure the object and its descendents will
225225
// be traced. They are only called in steps that expand the transitive closure. That include
226-
// retaining soft references, and (for MarkSweep) tracing objects for forwarding.
226+
// retaining soft references, and (for MarkCompact) tracing objects for forwarding.
227227
// Note that finalizers also expand the transitive closure.
228228
// These functions are intended to make the code easier to understand.
229229

src/vm/reference_glue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub trait ReferenceGlue<VM: VMBinding> {
2828
/// Get the referent from a weak reference object.
2929
///
3030
/// Arguments:
31-
/// * `object`: Reference to the referent. `None`` if the object currently does not point to a
31+
/// * `object`: Reference to the referent. `None` if the object currently does not point to a
3232
/// referent. This may happen if the reference has been cleared.
3333
fn get_referent(object: ObjectReference) -> Option<ObjectReference>;
3434

tests/test_address.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate mmtk;
2-
31
use mmtk::util::Address;
42

53
#[test]

0 commit comments

Comments
 (0)