Miscellaneous cleanup for old issues.

This commit is contained in:
Lee Jeffery 2015-09-20 11:35:08 +01:00 committed by Eljay
parent fd38a75077
commit 140e2d3a09
15 changed files with 44 additions and 108 deletions

View file

@ -126,8 +126,7 @@ fn main() {
println!("{} keys", n_keys);
// FIXME: #9970
println!("{}", "\nBTreeMap:");
println!("\nBTreeMap:");
{
let mut map: BTreeMap<usize,usize> = BTreeMap::new();
@ -145,8 +144,7 @@ fn main() {
vector(&mut map, n_keys, &rand);
}
// FIXME: #9970
println!("{}", "\nHashMap:");
println!("\nHashMap:");
{
let mut map: HashMap<usize,usize> = HashMap::new();

View file

@ -111,12 +111,9 @@ fn assign_field4<'a>(x: &'a mut Own<Point>) {
x.y = 3; //~ ERROR cannot borrow
}
// FIXME(eddyb) #12825 This shouldn't attempt to call deref_mut.
/*
fn deref_imm_method(x: Own<Point>) {
let __isize = x.get();
}
*/
fn deref_mut_method1(x: Own<Point>) {
x.set(0, 0); //~ ERROR cannot borrow

View file

@ -8,14 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// FIXME #20661: format_args! emits calls to the unstable std::fmt::rt
// module, so the compiler has some hacks to make that possible
// (in span_is_internal). Unnfortunately those hacks defeat this
// particular scenario of checking feature gates in arguments to
// println!().
// ignore-test
// tests that input to a macro is checked for use of gated features. If this
// test succeeds due to the acceptance of a feature, pick a new feature to
// test. Not ideal, but oh well :(

View file

@ -16,8 +16,7 @@ macro_rules! print_hd_tl {
print!("{}", stringify!($field_tl));
print!(", ");
)+
// FIXME: #9970
print!("{}", "]\n");
print!("]\n");
})
}

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// ignore-test #9383
// shouldn't affect evaluation of $ex:
macro_rules! bad_macro {
($ex:expr) => ({(|_x| { $ex }) (9) })

View file

@ -12,8 +12,6 @@
/// retained.
///
/// ```rust
/// mod to_make_deriving_work { // FIXME #4913
///
/// # #[derive(PartialEq)] // invisible
/// # struct Foo; // invisible
///
@ -24,8 +22,6 @@
/// let x = Bar(Foo);
/// assert_eq!(x, x); // check that the derivings worked
/// }
///
/// }
/// ```
pub fn foo() {}