Skip to content

Commit 7512a3d

Browse files
committed
---
yaml --- r: 49593 b: refs/heads/master c: e5f8026 h: refs/heads/master i: 49591: c319f7b v: v3
1 parent 8e974b0 commit 7512a3d

File tree

7 files changed

+31
-6
lines changed

7 files changed

+31
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 113fbfc795951a10f6c0b08563944bfb6a965956
2+
refs/heads/master: e5f8026ebab867547514677bf9d7c7870a4345ad
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea

trunk/src/libcore/cast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//! Unsafe casting functions
12+
1113
pub mod rusti {
1214
#[abi = "rust-intrinsic"]
1315
#[link_name = "rusti"]

trunk/src/libcore/cell.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
//! A mutable, nullable memory location
12+
1113
use cast::transmute;
1214
use option;
1315
use prelude::*;
1416

15-
/// A dynamic, mutable location.
16-
///
17-
/// Similar to a mutable option type, but friendlier.
17+
/*
18+
A dynamic, mutable location.
19+
20+
Similar to a mutable option type, but friendlier.
21+
*/
1822

1923
pub struct Cell<T> {
2024
mut value: Option<T>

trunk/src/libcore/clone.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,20 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
/**
12-
Clonable types are copied with the clone method
11+
/*! The Clone trait for types that cannot be "implicitly copied"
12+
13+
In Rust, some simple types are "implicitly copyable" and when you
14+
assign them or pass them as arguments, the receiver will get a copy,
15+
leaving the original value in place. These types do not require
16+
allocation to copy and do not have finalizers (i.e. they do not
17+
contain owned pointers or implement `Drop`), so the compiler considers
18+
them cheap and safe to copy and automatically implements the `Copy`
19+
trait for them. For other types copies must be made explicitly,
20+
by convention implementing the `Clone` trait and calling the
21+
`clone` method.
22+
1323
*/
24+
1425
pub trait Clone {
1526
fn clone(&self) -> Self;
1627
}

trunk/src/libcore/comm.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
/*!
12+
Message passing
13+
*/
14+
1115
use cast;
1216
use either::{Either, Left, Right};
1317
use kinds::Owned;

trunk/src/libcore/condition.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
/*! Condition handling */
12+
1113
use prelude::*;
1214
use task;
1315
use task::local_data::{local_data_pop, local_data_set};

trunk/src/libcore/rt/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[doc(hidden)];
12+
1113
use libc::c_char;
1214

1315
// Some basic logging

0 commit comments

Comments
 (0)