Skip to content

Commit 135a8f7

Browse files
committed
---
yaml --- r: 107675 b: refs/heads/dist-snap c: cc61fc0 h: refs/heads/master i: 107673: 8dba28d 107671: 70b76e5 v: v3
1 parent 63eeff0 commit 135a8f7

File tree

105 files changed

+203
-307
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+203
-307
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 6743c650c1649dcbb38d17fb029ed738e79ef0ae
9+
refs/heads/dist-snap: cc61fc09945aeec6fc71a07e91b8610fa71f6425
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ CFG_INFO := $(info cfg: *** compiler is in snapshot transition ***)
636636
CFG_INFO := $(info cfg: *** stage2 and later will not be built ***)
637637
CFG_INFO := $(info cfg:)
638638

639-
#XXX This is surely busted
639+
#FIXME This is surely busted
640640
all: $(SREQ1$(CFG_BUILD)) $(GENERATED) docs
641641

642642
else

branches/dist-snap/doc/guide-container.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Reaching the end of the iterator is signalled by returning `None` instead of
9090
# fn main() {}
9191
/// A stream of N zeroes
9292
struct ZeroStream {
93-
remaining: uint
93+
priv remaining: uint
9494
}
9595

9696
impl ZeroStream {
@@ -305,7 +305,7 @@ The `ZeroStream` from earlier can provide an exact lower and upper bound:
305305
# fn main() {}
306306
/// A stream of N zeroes
307307
struct ZeroStream {
308-
remaining: uint
308+
priv remaining: uint
309309
}
310310
311311
impl ZeroStream {

branches/dist-snap/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@ and only if that results in no match look at items you brought in
28952895
scope with corresponding `use` statements.
28962896

28972897
~~~ {.ignore}
2898-
# // XXX: Allow unused import in doc test
2898+
# // FIXME: Allow unused import in doc test
28992899
use farm::cow;
29002900
// ...
29012901
# mod farm { pub fn cow() { println!("Hidden ninja cow is hidden.") } }

branches/dist-snap/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ define CFG_MAKE_TOOLCHAIN
596596
else
597597

598598
# For the ARM and MIPS crosses, use the toolchain assembler
599-
# XXX: We should be able to use the LLVM assembler
599+
# FIXME: We should be able to use the LLVM assembler
600600
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
601601
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
602602

branches/dist-snap/src/libextra/arc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<T:Freeze + Send> Clone for Arc<T> {
148148
****************************************************************************/
149149

150150
#[doc(hidden)]
151-
struct MutexArcInner<T> { lock: Mutex, failed: bool, data: T }
151+
struct MutexArcInner<T> { priv lock: Mutex, priv failed: bool, priv data: T }
152152

153153
/// An Arc with mutable data protected by a blocking mutex.
154154
#[no_freeze]
@@ -312,7 +312,7 @@ impl PoisonOnFail {
312312
****************************************************************************/
313313

314314
#[doc(hidden)]
315-
struct RWArcInner<T> { lock: RWLock, failed: bool, data: T }
315+
struct RWArcInner<T> { priv lock: RWLock, priv failed: bool, priv data: T }
316316
/**
317317
* A dual-mode Arc protected by a reader-writer lock. The data can be accessed
318318
* mutably or immutably, and immutably-accessing tasks may run concurrently.

branches/dist-snap/src/libextra/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl Arena {
276276
#[inline]
277277
pub fn alloc<'a, T>(&'a self, op: || -> T) -> &'a T {
278278
unsafe {
279-
// XXX: Borrow check
279+
// FIXME: Borrow check
280280
let this = transmute_mut(self);
281281
if intrinsics::needs_drop::<T>() {
282282
this.alloc_nonpod(op)

branches/dist-snap/src/libextra/dlist.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ pub struct DList<T> {
3838
}
3939

4040
type Link<T> = Option<~Node<T>>;
41-
struct Rawlink<T> { p: *mut T }
41+
struct Rawlink<T> { priv p: *mut T }
4242

4343
struct Node<T> {
44-
next: Link<T>,
45-
prev: Rawlink<Node<T>>,
46-
value: T,
44+
priv next: Link<T>,
45+
priv prev: Rawlink<Node<T>>,
46+
priv value: T,
4747
}
4848

4949
/// Double-ended DList iterator

branches/dist-snap/src/libextra/ebml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ pub mod writer {
630630

631631
// FIXME (#2741): Provide a function to write the standard ebml header.
632632
impl<'a> Encoder<'a> {
633-
/// XXX(pcwalton): Workaround for badness in trans. DO NOT USE ME.
633+
/// FIXME(pcwalton): Workaround for badness in trans. DO NOT USE ME.
634634
pub unsafe fn unsafe_clone(&self) -> Encoder<'a> {
635635
Encoder {
636636
writer: cast::transmute_copy(&self.writer),

branches/dist-snap/src/libextra/glob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn glob_with(pattern: &str, options: MatchOptions) -> Paths {
9393
let pat_root = Path::new(pattern).root_path();
9494
if pat_root.is_some() {
9595
if check_windows_verbatim(pat_root.get_ref()) {
96-
// XXX: How do we want to handle verbatim paths? I'm inclined to return nothing,
96+
// FIXME: How do we want to handle verbatim paths? I'm inclined to return nothing,
9797
// since we can't very well find all UNC shares with a 1-letter server name.
9898
return Paths { root: root, dir_patterns: ~[], options: options, todo: ~[] };
9999
}

branches/dist-snap/src/libextra/lru_cache.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ use std::to_bytes::Cb;
4343
use std::ptr;
4444
use std::cast;
4545

46-
struct KeyRef<K> { k: *K }
46+
struct KeyRef<K> { priv k: *K }
4747

4848
struct LruEntry<K, V> {
49-
key: Option<K>,
50-
value: Option<V>,
51-
next: *mut LruEntry<K, V>,
52-
prev: *mut LruEntry<K, V>,
49+
priv key: Option<K>,
50+
priv value: Option<V>,
51+
priv next: *mut LruEntry<K, V>,
52+
priv prev: *mut LruEntry<K, V>,
5353
}
5454

5555
/// An LRU Cache.

branches/dist-snap/src/libextra/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ pub struct Barrier {
709709

710710
// The inner state of a double barrier
711711
struct BarrierState {
712-
count: uint,
713-
generation_id: uint,
712+
priv count: uint,
713+
priv generation_id: uint,
714714
}
715715

716716
impl Barrier {

branches/dist-snap/src/libextra/url.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ fn decode_inner(s: &str, full_url: bool) -> ~str {
174174
let mut bytes = [0, 0];
175175
match rdr.read(bytes) {
176176
Some(2) => {}
177-
_ => fail!() // XXX: malformed url?
177+
_ => fail!() // FIXME: malformed url?
178178
}
179179
let ch = uint::parse_bytes(bytes, 16u).unwrap() as u8 as char;
180180

@@ -308,7 +308,7 @@ pub fn decode_form_urlencoded(s: &[u8]) -> HashMap<~str, ~[~str]> {
308308
let mut bytes = [0, 0];
309309
match rdr.read(bytes) {
310310
Some(2) => {}
311-
_ => fail!() // XXX: malformed?
311+
_ => fail!() // FIXME: malformed?
312312
}
313313
uint::parse_bytes(bytes, 16u).unwrap() as u8 as char
314314
}

branches/dist-snap/src/libextra/workcache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ impl<'a> Prep<'a> {
413413
let (port, chan) = Chan::new();
414414
let blk = bo.take_unwrap();
415415

416-
// XXX: What happens if the task fails?
416+
// FIXME: What happens if the task fails?
417417
do spawn {
418418
let mut exe = Exec {
419419
discovered_inputs: WorkMap::new(),

branches/dist-snap/src/libgreen/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl EventLoop for BasicLoop {
139139
self.work.push(f);
140140
}
141141

142-
// XXX: Seems like a really weird requirement to have an event loop provide.
142+
// FIXME: Seems like a really weird requirement to have an event loop provide.
143143
fn pausable_idle_callback(&mut self, cb: ~Callback) -> ~PausableIdleCallback {
144144
let callback = ~BasicPausable::new(self, cb);
145145
rtassert!(self.idle.is_none());

branches/dist-snap/src/libgreen/macros.rs

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

11-
// XXX: this file probably shouldn't exist
11+
// FIXME: this file probably shouldn't exist
1212

1313
#[macro_escape];
1414

1515
use std::fmt;
1616

1717
// Indicates whether we should perform expensive sanity checks, including rtassert!
18-
// XXX: Once the runtime matures remove the `true` below to turn off rtassert, etc.
18+
// FIXME: Once the runtime matures remove the `true` below to turn off rtassert, etc.
1919
pub static ENFORCE_SANITY: bool = true || !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert);
2020

2121
macro_rules! rterrln (

branches/dist-snap/src/libgreen/sched.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use task::{TypeSched, GreenTask, HomeSched, AnySched};
3232
/// struct. The scheduler struct acts like a baton, all scheduling
3333
/// actions are transfers of the baton.
3434
///
35-
/// XXX: This creates too many callbacks to run_sched_once, resulting
35+
/// FIXME: This creates too many callbacks to run_sched_once, resulting
3636
/// in too much allocation and too many events.
3737
pub struct Scheduler {
3838
/// ID number of the pool that this scheduler is a member of. When
@@ -171,7 +171,7 @@ impl Scheduler {
171171
return sched;
172172
}
173173

174-
// XXX: This may eventually need to be refactored so that
174+
// FIXME: This may eventually need to be refactored so that
175175
// the scheduler itself doesn't have to call event_loop.run.
176176
// That will be important for embedding the runtime into external
177177
// event loops.
@@ -898,7 +898,7 @@ impl CleanupJob {
898898
}
899899
}
900900

901-
// XXX: Some hacks to put a || closure in Scheduler without borrowck
901+
// FIXME: Some hacks to put a || closure in Scheduler without borrowck
902902
// complaining
903903
type UnsafeTaskReceiver = raw::Closure;
904904
trait ClosureConverter {

branches/dist-snap/src/libgreen/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Stack {
6161
valgrind_id: 0
6262
};
6363

64-
// XXX: Using the FFI to call a C macro. Slow
64+
// FIXME: Using the FFI to call a C macro. Slow
6565
stk.valgrind_id = unsafe {
6666
rust_valgrind_stack_register(stk.start(), stk.end())
6767
};
@@ -117,7 +117,7 @@ fn protect_last_page(stack: &MemoryMap) -> bool {
117117
impl Drop for Stack {
118118
fn drop(&mut self) {
119119
unsafe {
120-
// XXX: Using the FFI to call a C macro. Slow
120+
// FIXME: Using the FFI to call a C macro. Slow
121121
rust_valgrind_stack_deregister(self.valgrind_id);
122122
}
123123
}

branches/dist-snap/src/libnative/io/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ pub fn chown(p: &CString, uid: int, gid: int) -> IoResult<()> {
674674
pub fn readlink(p: &CString) -> IoResult<Path> {
675675
return os_readlink(p);
676676

677-
// XXX: I have a feeling that this reads intermediate symlinks as well.
677+
// FIXME: I have a feeling that this reads intermediate symlinks as well.
678678
#[cfg(windows)]
679679
fn os_readlink(p: &CString) -> IoResult<Path> {
680680
let handle = unsafe {
@@ -709,7 +709,7 @@ pub fn readlink(p: &CString) -> IoResult<Path> {
709709
let p = p.with_ref(|p| p);
710710
let mut len = unsafe { libc::pathconf(p, libc::_PC_NAME_MAX) };
711711
if len == -1 {
712-
len = 1024; // XXX: read PATH_MAX from C ffi?
712+
len = 1024; // FIXME: read PATH_MAX from C ffi?
713713
}
714714
let mut buf = vec::with_capacity::<u8>(len as uint);
715715
match retry(|| unsafe {
@@ -877,7 +877,7 @@ pub fn stat(p: &CString) -> IoResult<io::FileStat> {
877877
pub fn lstat(p: &CString) -> IoResult<io::FileStat> {
878878
return os_lstat(p);
879879

880-
// XXX: windows implementation is missing
880+
// FIXME: windows implementation is missing
881881
#[cfg(windows)]
882882
fn os_lstat(_p: &CString) -> IoResult<io::FileStat> {
883883
Err(super::unimpl())

branches/dist-snap/src/libnative/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn translate_error(errno: i32, detail: bool) -> IoError {
9797

9898
#[cfg(not(windows))]
9999
fn get_err(errno: i32) -> (io::IoErrorKind, &'static str) {
100-
// XXX: this should probably be a bit more descriptive...
100+
// FIXME: this should probably be a bit more descriptive...
101101
match errno {
102102
libc::EOF => (io::EndOfFile, "end of file"),
103103
libc::ECONNREFUSED => (io::ConnectionRefused, "connection refused"),

branches/dist-snap/src/libnative/io/timer_timerfd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn helper(input: libc::c_int, messages: Port<Req>) {
104104
let mut bits = [0, ..8];
105105
// drain the timerfd of how many times its fired
106106
//
107-
// XXX: should this perform a send() this number of
107+
// FIXME: should this perform a send() this number of
108108
// times?
109109
FileDesc::new(fd, false).inner_read(bits);
110110
let remove = {

branches/dist-snap/src/librustc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ fn parse_crate_attrs(sess: session::Session,
330330
/// The diagnostic emitter yielded to the procedure should be used for reporting
331331
/// errors of the compiler.
332332
pub fn monitor(f: proc(@diagnostic::Emitter)) {
333-
// XXX: This is a hack for newsched since it doesn't support split stacks.
333+
// FIXME: This is a hack for newsched since it doesn't support split stacks.
334334
// rustc needs a lot of stack! When optimizations are disabled, it needs
335335
// even *more* stack than usual as well.
336336
#[cfg(rtopt)]
@@ -341,7 +341,7 @@ pub fn monitor(f: proc(@diagnostic::Emitter)) {
341341
let mut task_builder = task::task();
342342
task_builder.name("rustc");
343343

344-
// XXX: Hacks on hacks. If the env is trying to override the stack size
344+
// FIXME: Hacks on hacks. If the env is trying to override the stack size
345345
// then *don't* set it explicitly.
346346
if os::getenv("RUST_MIN_STACK").is_none() {
347347
task_builder.opts.stack_size = Some(STACK_SIZE);

branches/dist-snap/src/librustc/metadata/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
12751275
// If this is a static method, we've already encoded
12761276
// this.
12771277
if method_ty.explicit_self != SelfStatic {
1278-
// XXX: I feel like there is something funny going on.
1278+
// FIXME: I feel like there is something funny going on.
12791279
let tpt = ty::lookup_item_type(tcx, method_def_id);
12801280
encode_bounds_and_type(ebml_w, ecx, &tpt);
12811281
}

branches/dist-snap/src/librustc/metadata/loader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl Context {
187187
for lib in libs.mut_iter() {
188188
match lib.dylib {
189189
Some(ref p) if p.filename_str() == Some(file.as_slice()) => {
190-
assert!(lib.rlib.is_none()); // XXX: legit compiler error
190+
assert!(lib.rlib.is_none()); // FIXME: legit compiler error
191191
lib.rlib = Some(path.clone());
192192
return true;
193193
}
@@ -207,7 +207,7 @@ impl Context {
207207
for lib in libs.mut_iter() {
208208
match lib.rlib {
209209
Some(ref p) if p.filename_str() == Some(file.as_slice()) => {
210-
assert!(lib.dylib.is_none()); // XXX: legit compiler error
210+
assert!(lib.dylib.is_none()); // FIXME: legit compiler error
211211
lib.dylib = Some(path.clone());
212212
return true;
213213
}

branches/dist-snap/src/librustc/middle/astencode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ impl<'a,'b> ast_util::IdVisitingOperation for
913913
// it is mutable. But I believe it's harmless since we generate
914914
// balanced EBML.
915915
//
916-
// XXX(pcwalton): Don't copy this way.
916+
// FIXME(pcwalton): Don't copy this way.
917917
let mut new_ebml_w = unsafe {
918918
self.new_ebml_w.unsafe_clone()
919919
};

branches/dist-snap/src/librustc/middle/borrowck/gather_loans/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ impl<'a> GatherLoanCtxt<'a> {
416416
}
417417

418418
ty::AutoObject(..) => {
419-
// XXX: Handle @Trait to &Trait casts here?
419+
// FIXME: Handle @Trait to &Trait casts here?
420420
}
421421
}
422422
}

branches/dist-snap/src/librustc/middle/borrowck/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub mod move_data;
5050

5151
pub struct LoanDataFlowOperator;
5252

53-
/// XXX(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
53+
/// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
5454
/// yet on unit structs.
5555
impl Clone for LoanDataFlowOperator {
5656
fn clone(&self) -> LoanDataFlowOperator {

branches/dist-snap/src/librustc/middle/borrowck/move_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub struct Assignment {
148148

149149
pub struct MoveDataFlowOperator;
150150

151-
/// XXX(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
151+
/// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
152152
/// yet on unit structs.
153153
impl Clone for MoveDataFlowOperator {
154154
fn clone(&self) -> MoveDataFlowOperator {
@@ -160,7 +160,7 @@ pub type MoveDataFlow = DataFlowContext<MoveDataFlowOperator>;
160160

161161
pub struct AssignDataFlowOperator;
162162

163-
/// XXX(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
163+
/// FIXME(pcwalton): Should just be #[deriving(Clone)], but that doesn't work
164164
/// yet on unit structs.
165165
impl Clone for AssignDataFlowOperator {
166166
fn clone(&self) -> AssignDataFlowOperator {

0 commit comments

Comments
 (0)