about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-01-15 19:44:38 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-01-15 19:44:38 -0500
commit6badef49fe502ca22aaabd4309bd899eea4144d4 (patch)
tree8548e1f973cf5dab2ef526b19aeb2eadd9c3538e /src
parente71571a3cda0f7a283bd58a1c74a79c06de27661 (diff)
downloadrust-6badef49fe502ca22aaabd4309bd899eea4144d4.tar.gz
rust-6badef49fe502ca22aaabd4309bd899eea4144d4.zip
Remove FIXMEs and add license
Diffstat (limited to 'src')
-rw-r--r--src/librustc/middle/region.rs4
-rw-r--r--src/librustc/middle/trans/_match.rs2
-rw-r--r--src/librustc/middle/trans/doc.rs10
-rw-r--r--src/libstd/vec.rs2
4 files changed, 13 insertions, 5 deletions
diff --git a/src/librustc/middle/region.rs b/src/librustc/middle/region.rs
index 3f4e5a4ef89..a224a90a6a4 100644
--- a/src/librustc/middle/region.rs
+++ b/src/librustc/middle/region.rs
@@ -615,7 +615,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
     // A, but the inner rvalues `a()` and `b()` have an extended lifetime
     // due to rule C.
     //
-    // FIXME -- Note that `[]` patterns work more smoothly post-DST.
+    // FIXME(#6308) -- Note that `[]` patterns work more smoothly post-DST.
 
     match local.init {
         Some(expr) => {
@@ -778,7 +778,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
                 ast::ExprField(ref subexpr, _, _) |
                 ast::ExprIndex(_, ref subexpr, _) |
                 ast::ExprParen(ref subexpr) => {
-                    let subexpr: &'a @Expr = subexpr; // FIXME
+                    let subexpr: &'a @Expr = subexpr; // FIXME(#11586)
                     expr = &**subexpr;
                 }
                 _ => {
diff --git a/src/librustc/middle/trans/_match.rs b/src/librustc/middle/trans/_match.rs
index c7eb837aaf8..96367c769fd 100644
--- a/src/librustc/middle/trans/_match.rs
+++ b/src/librustc/middle/trans/_match.rs
@@ -2092,8 +2092,6 @@ fn bind_irrefutable_pat<'a>(
      * - pat: the irrefutable pattern being matched.
      * - val: the value being matched -- must be an lvalue (by ref, with cleanup)
      * - binding_mode: is this for an argument or a local variable?
-     *
-     * FIXME: convert `val` to `Datum<Lvalue>` for more type safety
      */
 
     debug!("bind_irrefutable_pat(bcx={}, pat={}, binding_mode={:?})",
diff --git a/src/librustc/middle/trans/doc.rs b/src/librustc/middle/trans/doc.rs
index c781d1dcbbf..b44f2ba2008 100644
--- a/src/librustc/middle/trans/doc.rs
+++ b/src/librustc/middle/trans/doc.rs
@@ -1,3 +1,13 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /*!
 
 # Documentation for the trans module
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index fd7640de126..1211882fd5d 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -168,7 +168,7 @@ pub fn from_elem<T:Clone>(n_elts: uint, t: T) -> ~[T] {
         let mut v = with_capacity(n_elts);
         let p = v.as_mut_ptr();
         let mut i = 0u;
-        (|| { // FIXME what if we fail in the middle of this loop?
+        (|| {
             while i < n_elts {
                 intrinsics::move_val_init(&mut(*ptr::mut_offset(p, i as int)), t.clone());
                 i += 1u;