Remove ancient emacs mode lines from test cases

These are relics that serve no purpose.
This commit is contained in:
Brian Anderson 2013-10-25 14:28:38 -07:00
parent 61f8c059c4
commit 9a773da681
123 changed files with 2 additions and 125 deletions

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -3,7 +3,6 @@
// xfail'd because the lint pass doesn't know to ignore standard library
// stuff.
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
@ -9,12 +8,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:9:3
// error-pattern:18:3
/* 1
* 2
* 3
*/
fn main() {
%; // parse error on line 9, but is reported on line 6 instead.
%; // parse error on line 18, but is reported on line 6 instead.
}

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
struct Pair<T, U> { a: T, b: U }
struct Triple { x: int, y: int, z: int }

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
if !false { assert!((true)); } else { assert!((false)); }
if !true { assert!((false)); } else { assert!((true)); }

View File

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
pub fn main() {
let i: int = 'Q' as int;
assert_eq!(i, 0x51);

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
type t = int;
fn nothing() { }

View File

@ -11,5 +11,4 @@
// -*- rust -*-
pub fn main() { if 1 == 1 { return; } info!("Paul is dead"); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn f(x: int) -> int {
if x == 1 { return 1; } else { let y: int = 1 + f(x - 1); return y; }
}

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
let x: int = 15;
let y: int = 5;

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn f() -> int {
if true {
let _s: ~str = ~"should not leak";

View File

@ -11,5 +11,4 @@
// -*- rust -*-
pub fn main() { let x = { @100 }; assert!((*x == 100)); }

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -10,7 +10,6 @@
// -*- rust -*-
type compare<'self, T> = &'self fn(~T, ~T) -> bool;
fn test_generic<T:Clone>(expected: ~T, eq: compare<T>) {

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-fast
// -*- rust -*-
type compare<'self, T> = &'self fn(T, T) -> bool;

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,5 +11,4 @@
// -*- rust -*-
pub fn main() { let x = { ~100 }; assert!((*x == 100)); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for standalone blocks as expressions
fn test_basic() { let rs: bool = { true }; assert!((rs)); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for if as expressions returning boxed types
fn test_box() {

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-fast
// -*- rust -*-
// Tests for if as expressions with dynamic type sizes
type compare<T> = &'static fn(T, T) -> bool;

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for if as expressions returning nominal types

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for if as expressions returning boxed types
fn test_box() {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for if as expressions
fn test_if() { let rs: bool = if true { true } else { false }; assert!((rs)); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for match as expressions resulting in boxed types
fn test_box() {

View File

@ -10,7 +10,6 @@
// -*- rust -*-
type compare<T> = &'static fn(~T, ~T) -> bool;
fn test_generic<T:Clone>(expected: ~T, eq: compare<T>) {

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-fast
// -*- rust -*-
type compare<'self, T> = &'self fn(T, T) -> bool;

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-fast
// -*- rust -*-
type compare<T> = extern "Rust" fn(T, T) -> bool;

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for match as expressions resulting in struct types
struct R { i: int }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for match as expressions resulting in boxed types
fn test_box() {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Tests for using match as an expression
fn test_basic() {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn f(x: int) -> int {
// info!("in f:");

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn foo(_f: extern fn(int) -> int) { }
fn id(x: int) -> int { return x; }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn two(it: &fn(int)) { it(0); it(1); }
pub fn main() {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
let mut sum: int = 0;
do first_ten |i| { info!("main"); info!("{}", i); sum = sum + i; }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
let f = "Makefile";
let s = rustrt.str_buf(f);

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-test FIXME #7308
// -*- rust -*-
native mod libc = target_libc {
fn open(int name, int flags, int mode) -> int;

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
libc.puts(rustrt.str_buf("hello, extern world 1"));
libc.puts(rustrt.str_buf("hello, extern world 2"));

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-test
// -*- rust -*-
native "cdecl" mod rustrt {
fn str_buf(str s) -> int;

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn f() -> int { return 42; }
pub fn main() {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Issue #45: infer type parameters in function applications
fn id<T>(x: T) -> T { return x; }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
mod foomod {
pub fn foo<T>() { }
}

View File

@ -10,7 +10,6 @@
#[allow(dead_assignment)];
// -*- rust -*-
fn id<T>(x: T) -> T { return x; }
struct Triple {x: int, y: int, z: int}

View File

@ -11,7 +11,6 @@
// -*- rust -*-
enum noption<T> { some(T), }
struct Pair { x: int, y: int }

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,5 +11,4 @@
// -*- rust -*-
pub fn main() { let mut x: i32 = -400_i32; x = 0_i32 - x; assert!((x == 400_i32)); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
let mut x: i8 = -12i8;
let y: i8 = -12i8;

View File

@ -11,7 +11,6 @@
// -*- rust -*-
mod inner {
pub mod inner2 {
pub fn hello() { info!("hello, modular world"); }

View File

@ -11,5 +11,4 @@
// -*- rust -*-
pub fn main() { let _x: int = 10; }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
mod foo {
pub fn baz() { }
}

View File

@ -11,7 +11,6 @@
// -*- rust -*-
struct Large {a: int,
b: int,

View File

@ -11,7 +11,6 @@
// -*- rust -*-
enum color {
rgb(int, int, int),
rgba(int, int, int, int),

View File

@ -9,7 +9,6 @@
// except according to those terms.
// xfail-test
// -*- rust -*-
extern mod std;
use std::gc;
use std::gc::rustrt;

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// -*- rust -*-
extern mod extra;
fn grow(v: &mut ~[int]) {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
pub fn main() {
let mut x: int = 1;
x *= 2;

View File

@ -10,7 +10,6 @@
#[allow(unreachable_code)];
// -*- rust -*-
fn dont_call_me() { fail!(); info!("{}", 1); }
pub fn main() { }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
struct Point {x: int, y: int, z: int}
fn f(p: Point) { assert!((p.z == 12)); }

View File

@ -11,7 +11,6 @@
// -*- rust -*-
// Issue #50.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
struct Point {x: int, y: int}
pub fn main() {

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
struct Rect {x: int, y: int, w: int, h: int}
fn f(r: Rect, x: int, y: int, w: int, h: int) {

View File

@ -11,7 +11,6 @@
// -*- rust -*-
fn my_err(s: ~str) -> ! { error!("{:?}", s); fail!(); }
fn okay(i: uint) -> int {

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -11,7 +11,6 @@
// -*- rust -*-
enum clam<T> { a(T, int), b, }
fn uhoh<T>(v: ~[clam<T>]) {

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

View File

@ -1,4 +1,3 @@
// -*- rust -*-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.

Some files were not shown because too many files have changed in this diff Show More