Remove FIXMEs and add license
This commit is contained in:
parent
e71571a3cd
commit
6badef49fe
4 changed files with 13 additions and 5 deletions
|
@ -615,7 +615,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
|
||||||
// A, but the inner rvalues `a()` and `b()` have an extended lifetime
|
// A, but the inner rvalues `a()` and `b()` have an extended lifetime
|
||||||
// due to rule C.
|
// 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 {
|
match local.init {
|
||||||
Some(expr) => {
|
Some(expr) => {
|
||||||
|
@ -778,7 +778,7 @@ fn resolve_local(visitor: &mut RegionResolutionVisitor,
|
||||||
ast::ExprField(ref subexpr, _, _) |
|
ast::ExprField(ref subexpr, _, _) |
|
||||||
ast::ExprIndex(_, ref subexpr, _) |
|
ast::ExprIndex(_, ref subexpr, _) |
|
||||||
ast::ExprParen(ref subexpr) => {
|
ast::ExprParen(ref subexpr) => {
|
||||||
let subexpr: &'a @Expr = subexpr; // FIXME
|
let subexpr: &'a @Expr = subexpr; // FIXME(#11586)
|
||||||
expr = &**subexpr;
|
expr = &**subexpr;
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
|
@ -2092,8 +2092,6 @@ fn bind_irrefutable_pat<'a>(
|
||||||
* - pat: the irrefutable pattern being matched.
|
* - pat: the irrefutable pattern being matched.
|
||||||
* - val: the value being matched -- must be an lvalue (by ref, with cleanup)
|
* - val: the value being matched -- must be an lvalue (by ref, with cleanup)
|
||||||
* - binding_mode: is this for an argument or a local variable?
|
* - 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={:?})",
|
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
|
# 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 mut v = with_capacity(n_elts);
|
||||||
let p = v.as_mut_ptr();
|
let p = v.as_mut_ptr();
|
||||||
let mut i = 0u;
|
let mut i = 0u;
|
||||||
(|| { // FIXME what if we fail in the middle of this loop?
|
(|| {
|
||||||
while i < n_elts {
|
while i < n_elts {
|
||||||
intrinsics::move_val_init(&mut(*ptr::mut_offset(p, i as int)), t.clone());
|
intrinsics::move_val_init(&mut(*ptr::mut_offset(p, i as int)), t.clone());
|
||||||
i += 1u;
|
i += 1u;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue