Skip to content

Commit cc61fc0

Browse files
committed
Removed all instances of XXX in preparation for relaxing of FIXME rule
1 parent 838b5a4 commit cc61fc0

Some content is hidden

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

72 files changed

+119
-119
lines changed

Makefile.in

+1-1
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

doc/tutorial.md

+1-1
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.") } }

mk/platform.mk

+1-1
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

src/libextra/arena.rs

+1-1
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)

src/libextra/ebml.rs

+1-1
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),

src/libextra/glob.rs

+1-1
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
}

src/libextra/url.rs

+2-2
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
}

src/libextra/workcache.rs

+1-1
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(),

src/libgreen/basic.rs

+1-1
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());

src/libgreen/macros.rs

+2-2
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 (

src/libgreen/sched.rs

+3-3
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 {

src/libgreen/stack.rs

+2-2
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
}

src/libnative/io/file.rs

+3-3
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())

src/libnative/io/mod.rs

+1-1
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"),

src/libnative/io/timer_timerfd.rs

+1-1
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 = {

src/librustc/lib.rs

+2-2
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);

src/librustc/metadata/encoder.rs

+1-1
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
}

src/librustc/metadata/loader.rs

+2-2
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
}

src/librustc/middle/astencode.rs

+1-1
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
};

src/librustc/middle/borrowck/gather_loans/mod.rs

+1-1
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
}

src/librustc/middle/borrowck/mod.rs

+1-1
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 {

src/librustc/middle/borrowck/move_data.rs

+2-2
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 {

src/librustc/middle/reachable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl ReachableContext {
404404

405405
// Step 3: Mark all destructors as reachable.
406406
//
407-
// XXX(pcwalton): This is a conservative overapproximation, but fixing
407+
// FIXME(pcwalton): This is a conservative overapproximation, but fixing
408408
// this properly would result in the necessity of computing *type*
409409
// reachability, which might result in a compile time loss.
410410
fn mark_destructors_reachable(&self) {

src/librustc/middle/resolve.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct Export2 {
6161
// not contain any entries from local crates.
6262
pub type ExternalExports = HashSet<DefId>;
6363

64-
// XXX: dox
64+
// FIXME: dox
6565
pub type LastPrivateMap = HashMap<NodeId, LastPrivate>;
6666

6767
pub enum LastPrivate {
@@ -1411,7 +1411,7 @@ impl Resolver {
14111411
parent: ReducedGraphParent,
14121412
parent_public: bool) {
14131413
let ident = variant.node.name;
1414-
// XXX: this is unfortunate to have to do this privacy calculation
1414+
// FIXME: this is unfortunate to have to do this privacy calculation
14151415
// here. This should be living in middle::privacy, but it's
14161416
// necessary to keep around in some form becaues of glob imports...
14171417
let is_public = parent_public && variant.node.vis != ast::Private;
@@ -5282,7 +5282,7 @@ impl Resolver {
52825282
`{}`",
52835283
interner_get(label))),
52845284
Some(DlDef(def @ DefLabel(_))) => {
5285-
// XXX: is AllPublic correct?
5285+
// FIXME: is AllPublic correct?
52865286
self.record_def(expr.id, (def, AllPublic))
52875287
}
52885288
Some(_) => {

src/librustc/middle/trans/_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ fn enter_opt<'r,'b>(
643643
}
644644
ast::PatEnum(_, ref subpats) => {
645645
if opt_eq(tcx, &variant_opt(bcx, p.id), opt) {
646-
// XXX: Must we clone?
646+
// FIXME: Must we clone?
647647
match *subpats {
648648
None => Some(vec::from_elem(variant_size, dummy)),
649649
_ => (*subpats).clone(),

src/librustc/middle/trans/adt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ fn padding(size: u64) -> ValueRef {
805805
C_undef(Type::array(&Type::i8(), size))
806806
}
807807

808-
// XXX this utility routine should be somewhere more general
808+
// FIXME this utility routine should be somewhere more general
809809
#[inline]
810810
fn roundup(x: u64, a: u64) -> u64 { ((x + (a - 1)) / a) * a }
811811

src/librustc/middle/trans/closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ pub fn trans_expr_fn<'a>(
384384

385385
let sub_path = vec::append_one(bcx.fcx.path.clone(),
386386
PathName(special_idents::anon));
387-
// XXX: Bad copy.
387+
// FIXME: Bad copy.
388388
let s = mangle_internal_name_by_path_and_seq(ccx,
389389
sub_path.clone(),
390390
"expr_fn");

src/librustc/middle/trans/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ pub fn const_expr(cx: @CrateContext, e: &ast::Expr) -> (ValueRef, bool) {
283283
let tsize = machine::llsize_of_alloc(cx, llty);
284284
if csize != tsize {
285285
unsafe {
286-
// XXX these values could use some context
286+
// FIXME these values could use some context
287287
llvm::LLVMDumpValue(llconst);
288288
llvm::LLVMDumpValue(C_undef(llty));
289289
}

src/librustc/middle/trans/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub fn trans_intrinsic(ccx: @CrateContext,
417417
RetVoid(bcx);
418418
}
419419
"morestack_addr" => {
420-
// XXX This is a hack to grab the address of this particular
420+
// FIXME This is a hack to grab the address of this particular
421421
// native function. There should be a general in-language
422422
// way to do this
423423
let llfty = type_of_rust_fn(bcx.ccx(), None, [], ty::mk_nil());

src/librustc/middle/trans/meth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn trans_impl(ccx: @CrateContext,
9595
/// * `llfn`: a closure returning the LLVM ValueRef for the method
9696
/// * `impl_id`: the node ID of the impl this method is inside
9797
///
98-
/// XXX(pcwalton) Can we take `path` by reference?
98+
/// FIXME(pcwalton) Can we take `path` by reference?
9999
pub fn trans_method(ccx: @CrateContext,
100100
path: Path,
101101
method: &ast::Method,

src/librustc/middle/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@ pub fn type_is_pod(cx: ctxt, ty: t) -> bool {
24942494
ty_enum(did, ref substs) => {
24952495
let variants = enum_variants(cx, did);
24962496
for variant in (*variants).iter() {
2497-
// XXX(pcwalton): This is an inefficient way to do this. Don't
2497+
// FIXME(pcwalton): This is an inefficient way to do this. Don't
24982498
// synthesize a tuple!
24992499
//
25002500
// Perform any type parameter substitutions.
@@ -2655,7 +2655,7 @@ pub fn node_id_to_type(cx: ctxt, id: ast::NodeId) -> t {
26552655
}
26562656
}
26572657

2658-
// XXX(pcwalton): Makes a copy, bleh. Probably better to not do that.
2658+
// FIXME(pcwalton): Makes a copy, bleh. Probably better to not do that.
26592659
pub fn node_id_to_type_params(cx: ctxt, id: ast::NodeId) -> ~[t] {
26602660
let node_type_substs = cx.node_type_substs.borrow();
26612661
match node_type_substs.get().find(&id) {

0 commit comments

Comments
 (0)