Skip to content

Commit

Permalink
Automated fixes to follow Rust development
Browse files Browse the repository at this point in the history
Applied fixes:
	*attribute fix (cf rust-lang/rust#2569)
	*priv attribute removal (cf rust-lang/rust@f2a5c7a)
  • Loading branch information
Geal committed Apr 2, 2014
1 parent 49f761e commit c0fef07
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[crate_id="boehm#0.1"];
#[crate_type="rlib"];
#[feature(globs, macro_rules)];
#![crate_id="boehm#0.1"]
#![crate_type="rlib"]
#![feature(globs, macro_rules)]

use std::{libc, mem};
use std::kinds::marker;
Expand Down Expand Up @@ -41,8 +41,8 @@ pub fn debug_dump() {
/// A garbage collected pointer.
#[deriving(Clone)]
pub struct Gc<T> {
priv ptr: *mut T,
priv mark: marker::NoSend
ptr: *mut T,
mark: marker::NoSend
}

impl<T: 'static> Gc<T> {
Expand Down
2 changes: 1 addition & 1 deletion src/tracing/boehm_traced_impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[doc(hidden)];
#![doc(hidden)]
use std::{mem, cell};
use tracing::{BoehmTraced, GcTracing, GC_WORDSZ};

Expand Down
8 changes: 4 additions & 4 deletions src/tracing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[allow(dead_code)];
#![allow(dead_code)]

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

impl<T: BoehmTraced> GcTracing<T> {
Expand Down

0 comments on commit c0fef07

Please sign in to comment.