Skip to content

Commit 1c48647

Browse files
committed
Remove license headers from unsized-locals tests.
1 parent 4fd895a commit 1c48647

17 files changed

+6
-136
lines changed

src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122
#![feature(unboxed_closures)]
133

src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects-rust-call2.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122
#![feature(unboxed_closures)]
133

src/test/run-pass-valgrind/unsized-locals/by-value-trait-objects.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122

133
pub trait Foo {

src/test/run-pass-valgrind/unsized-locals/long-live-the-unsized-temporary.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122

133
use std::fmt;

src/test/run-pass/unsized-locals/by-value-trait-object-safety-withdefault.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122

133
pub trait Foo {

src/test/run-pass/unsized-locals/by-value-trait-object-safety.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122

133
pub trait Foo {

src/test/run-pass/unsized-locals/reference-unsized-locals.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
// run-pass
122

133
#![feature(unsized_locals)]

src/test/run-pass/unsized-locals/simple-unsized-locals.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
// run-pass
122

133
#![feature(unsized_locals)]

src/test/run-pass/unsized-locals/unsized-exprs.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
// run-pass
122

133
#![feature(unsized_tuple_coercion, unsized_locals)]

src/test/run-pass/unsized-locals/unsized-parameters.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
// run-pass
122

133
#![feature(unsized_locals)]

src/test/ui/unsized-locals/by-value-trait-object-safety.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_locals)]
122

133
pub trait Foo {

src/test/ui/unsized-locals/by-value-trait-object-safety.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: the `foo` method cannot be invoked on a trait object
2-
--> $DIR/by-value-trait-object-safety.rs:28:7
2+
--> $DIR/by-value-trait-object-safety.rs:18:7
33
|
44
LL | x.foo();
55
| ^^^

src/test/ui/unsized-locals/unsized-exprs.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_tuple_coercion, unsized_locals)]
122

133
struct A<X: ?Sized>(X);

src/test/ui/unsized-locals/unsized-exprs.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2-
--> $DIR/unsized-exprs.rs:32:26
2+
--> $DIR/unsized-exprs.rs:22:26
33
|
44
LL | udrop::<(i32, [u8])>((42, *foo()));
55
| ^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -10,7 +10,7 @@ LL | udrop::<(i32, [u8])>((42, *foo()));
1010
= note: tuples must have a statically known size to be initialized
1111

1212
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
13-
--> $DIR/unsized-exprs.rs:34:22
13+
--> $DIR/unsized-exprs.rs:24:22
1414
|
1515
LL | udrop::<A<[u8]>>(A { 0: *foo() });
1616
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time

src/test/ui/unsized-locals/unsized-exprs2.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0508]: cannot move out of type `[u8]`, a non-copy slice
2-
--> $DIR/unsized-exprs2.rs:32:19
2+
--> $DIR/unsized-exprs2.rs:22:19
33
|
44
LL | udrop::<[u8]>(foo()[..]);
55
| ^^^^^^^^^ cannot move out of here
66

77
error[E0507]: cannot move out of data in a `&` reference
8-
--> $DIR/unsized-exprs2.rs:32:19
8+
--> $DIR/unsized-exprs2.rs:22:19
99
|
1010
LL | udrop::<[u8]>(foo()[..]);
1111
| ^^^^^^^^^

src/test/ui/unsized-locals/unsized-exprs2.rs

-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2-
// file at the top-level directory of this distribution and at
3-
// http://rust-lang.org/COPYRIGHT.
4-
//
5-
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6-
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7-
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8-
// option. This file may not be copied, modified, or distributed
9-
// except according to those terms.
10-
111
#![feature(unsized_tuple_coercion, unsized_locals)]
122

133
struct A<X: ?Sized>(X);

src/test/ui/unsized-locals/unsized-exprs2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0507]: cannot move out of indexed content
2-
--> $DIR/unsized-exprs2.rs:32:19
2+
--> $DIR/unsized-exprs2.rs:22:19
33
|
44
LL | udrop::<[u8]>(foo()[..]);
55
| ^^^^^^^^^ cannot move out of indexed content

0 commit comments

Comments
 (0)