Remove FIXMEs and add license
This commit is contained in:
parent
e71571a3cd
commit
6badef49fe
@ -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;
|
||||
}
|
||||
_ => {
|
||||
|
@ -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={:?})",
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user