Remove licenses
This commit is contained in:
parent
14b96659e4
commit
2a663555dd
16206 changed files with 14751 additions and 129518 deletions
|
@ -1,5 +1,5 @@
|
|||
error[E0502]: cannot borrow `foo` as mutable because it is also borrowed as immutable
|
||||
--> $DIR/borrowck-issue-49631.rs:30:9
|
||||
--> $DIR/borrowck-issue-49631.rs:20:9
|
||||
|
|
||||
LL | while let Some(Ok(string)) = foo.get() {
|
||||
| --- immutable borrow occurs here
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub struct Foo {
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0502]: cannot borrow `foo` as mutable because it is also borrowed as immutable
|
||||
--> $DIR/borrowck-issue-49631.rs:30:9
|
||||
--> $DIR/borrowck-issue-49631.rs:20:9
|
||||
|
|
||||
LL | while let Some(Ok(string)) = foo.get() {
|
||||
| --- - immutable borrow ends here
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// FIXME(tschottdorf): this test should pass.
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/const.rs:24:9
|
||||
--> $DIR/const.rs:14:9
|
||||
|
|
||||
LL | FOO => {}, //~ ERROR mismatched types
|
||||
| ^^^ expected &Foo, found struct `Foo`
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0594]: cannot assign to `*x` which is behind a `&` reference
|
||||
--> $DIR/enum.rs:19:5
|
||||
--> $DIR/enum.rs:9:5
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
|
||||
|
||||
error[E0594]: cannot assign to `*x` which is behind a `&` reference
|
||||
--> $DIR/enum.rs:23:9
|
||||
--> $DIR/enum.rs:13:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
|
||||
|
||||
error[E0594]: cannot assign to `*x` which is behind a `&` reference
|
||||
--> $DIR/enum.rs:29:9
|
||||
--> $DIR/enum.rs:19:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
enum Wrapper {
|
||||
Wrap(i32),
|
||||
}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:19:5
|
||||
--> $DIR/enum.rs:9:5
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:23:9
|
||||
--> $DIR/enum.rs:13:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*x`
|
||||
--> $DIR/enum.rs:29:9
|
||||
--> $DIR/enum.rs:19:9
|
||||
|
|
||||
LL | *x += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0594]: cannot assign to `*n` which is behind a `&` reference
|
||||
--> $DIR/explicit-mut.rs:17:13
|
||||
--> $DIR/explicit-mut.rs:7:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
|
||||
|
||||
error[E0594]: cannot assign to `*n` which is behind a `&` reference
|
||||
--> $DIR/explicit-mut.rs:25:13
|
||||
--> $DIR/explicit-mut.rs:15:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
|
||||
|
||||
error[E0594]: cannot assign to `*n` which is behind a `&` reference
|
||||
--> $DIR/explicit-mut.rs:33:13
|
||||
--> $DIR/explicit-mut.rs:23:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ `n` is a `&` reference, so the data it refers to cannot be written
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// Verify the binding mode shifts - only when no `&` are auto-dereferenced is the
|
||||
// final default binding mode mutable.
|
||||
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:17:13
|
||||
--> $DIR/explicit-mut.rs:7:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:25:13
|
||||
--> $DIR/explicit-mut.rs:15:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
||||
error[E0594]: cannot assign to immutable borrowed content `*n`
|
||||
--> $DIR/explicit-mut.rs:33:13
|
||||
--> $DIR/explicit-mut.rs:23:13
|
||||
|
|
||||
LL | *n += 1; //~ ERROR cannot assign to immutable
|
||||
| ^^^^^^^ cannot borrow as mutable
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
struct Foo {}
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
||||
--> $DIR/for.rs:16:13
|
||||
--> $DIR/for.rs:6:13
|
||||
|
|
||||
LL | for (n, mut m) in &tups {
|
||||
| - ^^^^^ by-move pattern here
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// FIXME(tschottdorf): This should compile. See #44912.
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0409]: variable `x` is bound in inconsistent ways within the same match arm
|
||||
--> $DIR/issue-44912-or.rs:16:35
|
||||
--> $DIR/issue-44912-or.rs:6:35
|
||||
|
|
||||
LL | Some((x, 3)) | &Some((ref x, 5)) => x,
|
||||
| - first binding ^ bound in different ways
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// FIXME(tschottdorf): we want these to compile, but they don't.
|
||||
|
||||
fn with_str() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:17:13
|
||||
--> $DIR/lit.rs:7:13
|
||||
|
|
||||
LL | "abc" => true, //~ ERROR mismatched types
|
||||
| ^^^^^ expected &str, found str
|
||||
|
@ -8,7 +8,7 @@ LL | "abc" => true, //~ ERROR mismatched types
|
|||
found type `&'static str`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/lit.rs:26:9
|
||||
--> $DIR/lit.rs:16:9
|
||||
|
|
||||
LL | b"abc" => true, //~ ERROR mismatched types
|
||||
| ^^^^^^ expected &[u8], found array of 3 elements
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// Without caching type lookups in FnCtxt.resolve_ty_and_def_ufcs
|
||||
// the error below would be reported twice (once when checking
|
||||
// for a non-ref pattern, once when processing the pattern).
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0599]: no associated item named `XXX` found for type `u32` in the current scope
|
||||
--> $DIR/no-double-error.rs:18:9
|
||||
--> $DIR/no-double-error.rs:8:9
|
||||
|
|
||||
LL | u32::XXX => { } //~ ERROR no associated item named
|
||||
| ^^^^^^^^ associated item not found in `u32`
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0004]: non-exhaustive patterns: `&[]` not covered
|
||||
--> $DIR/slice.rs:16:11
|
||||
--> $DIR/slice.rs:6:11
|
||||
|
|
||||
LL | match sl { //~ ERROR non-exhaustive patterns
|
||||
| ^^ pattern `&[]` not covered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue