Skip to content

Commit c0fef07

Browse files
committed
Automated fixes to follow Rust development
Applied fixes: *attribute fix (cf rust-lang/rust#2569) *priv attribute removal (cf rust-lang/rust@f2a5c7a)
1 parent 49f761e commit c0fef07

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#[crate_id="boehm#0.1"];
2-
#[crate_type="rlib"];
3-
#[feature(globs, macro_rules)];
1+
#![crate_id="boehm#0.1"]
2+
#![crate_type="rlib"]
3+
#![feature(globs, macro_rules)]
44

55
use std::{libc, mem};
66
use std::kinds::marker;
@@ -41,8 +41,8 @@ pub fn debug_dump() {
4141
/// A garbage collected pointer.
4242
#[deriving(Clone)]
4343
pub struct Gc<T> {
44-
priv ptr: *mut T,
45-
priv mark: marker::NoSend
44+
ptr: *mut T,
45+
mark: marker::NoSend
4646
}
4747

4848
impl<T: 'static> Gc<T> {

src/tracing/boehm_traced_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[doc(hidden)];
1+
#![doc(hidden)]
22
use std::{mem, cell};
33
use tracing::{BoehmTraced, GcTracing, GC_WORDSZ};
44

src/tracing/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[allow(dead_code)];
1+
#![allow(dead_code)]
22

33
//! Precise GC on the heap.
44
//!
@@ -59,9 +59,9 @@ pub fn make_descriptor(bitmap: &[bool]) -> ffi::GC_descr {
5959
/// That is, run Boehm in precise-on-the-heap mode.
6060
#[deriving(Clone)]
6161
pub struct GcTracing<T> {
62-
priv ptr: *mut T,
63-
priv mark: marker::NoSend
64-
//priv force_managed: Option<@()>
62+
ptr: *mut T,
63+
mark: marker::NoSend
64+
//force_managed: Option<@()>
6565
}
6666

6767
impl<T: BoehmTraced> GcTracing<T> {

0 commit comments

Comments
 (0)