mirror of https://github.com/rust-lang/rust.git
Remove few FIXMEs
This commit removes FIXMEs of few closed issues. Closes #13992
This commit is contained in:
parent
58078005cf
commit
e4e3550ff6
|
@ -8,10 +8,9 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-test FIXME: #13992
|
||||
|
||||
struct A { foo: int }
|
||||
|
||||
fn main() {
|
||||
let A { foo, foo } = A { foo: 3 }; //~ ERROR: field `foo` bound twice
|
||||
let A { foo, foo } = A { foo: 3 };
|
||||
//~^ ERROR: identifier `foo` is bound more than once in the same pattern
|
||||
}
|
||||
|
|
|
@ -8,25 +8,19 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
fn env<'a>(_: &'a uint, blk: |p: ||: 'a|) {
|
||||
fn env<'a>(blk: |p: ||: 'a|) {
|
||||
// Test that the closure here cannot be assigned
|
||||
// the lifetime `'a`, which outlives the current
|
||||
// block.
|
||||
//
|
||||
// FIXME(#4846): The `&'a uint` parameter is needed to ensure that `'a`
|
||||
// is a free and not bound region name.
|
||||
|
||||
let mut state = 0;
|
||||
let statep = &mut state;
|
||||
blk(|| *statep = 1); //~ ERROR cannot infer
|
||||
}
|
||||
|
||||
fn no_env_no_for<'a>(_: &'a uint, blk: |p: |||: 'a) {
|
||||
fn no_env_no_for<'a>(blk: |p: |||: 'a) {
|
||||
// Test that a closure with no free variables CAN
|
||||
// outlive the block in which it is created.
|
||||
//
|
||||
// FIXME(#4846): The `&'a uint` parameter is needed to ensure that `'a`
|
||||
// is a free and not bound region name.
|
||||
|
||||
blk(|| ())
|
||||
}
|
||||
|
|
|
@ -95,19 +95,17 @@ mod test_stmt_multi_attr_outer {
|
|||
#[attr2 = "val"]
|
||||
fn f() { }
|
||||
|
||||
/* FIXME: Issue #493
|
||||
#[attr1 = "val"]
|
||||
#[attr2 = "val"]
|
||||
mod mod1 {
|
||||
}
|
||||
|
||||
pub mod rustrt {
|
||||
mod rustrt {
|
||||
#[attr1 = "val"]
|
||||
#[attr2 = "val"]
|
||||
extern {
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
#![feature(globs)]
|
||||
|
||||
// FIXME #3654
|
||||
|
||||
mod a {
|
||||
pub fn f() {}
|
||||
pub fn g() {}
|
||||
|
|
|
@ -29,9 +29,8 @@ trait map<T> {
|
|||
impl<T> map<T> for Vec<T> {
|
||||
fn map<U>(&self, f: |&T| -> U) -> Vec<U> {
|
||||
let mut r = Vec::new();
|
||||
// FIXME: #7355 generates bad code with VecIterator
|
||||
for i in range(0u, self.len()) {
|
||||
r.push(f(self.get(i)));
|
||||
for i in self.iter() {
|
||||
r.push(f(i));
|
||||
}
|
||||
r
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue