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

@ -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 :(