Copyright/license headers

The following changes are included:

- Delete per-file license notices at the top of each file.
- Delete the first paragraph of LICENSE-MIT (an inaccurate
  pseudo-copyright line), leaving only the text of the MIT license.

Nothing about the license of Serde code has changed, only our
understanding of how to correctly communicate that license has changed.

This mirrors an equivalent change being applied in the rust-lang/rust
repository.
This commit is contained in:
David Tolnay
2018-11-24 15:52:15 -08:00
parent 4821d09a48
commit 58b3af4c29
183 changed files with 255 additions and 1185 deletions
-8
View File
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
+2 -2
View File
@@ -1,7 +1,7 @@
error: failed to parse path: "~~~"
--> $DIR/bad_getter.rs:18:10
--> $DIR/bad_getter.rs:10:10
|
18 | #[derive(Serialize)]
10 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
-8
View File
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
+2 -2
View File
@@ -1,7 +1,7 @@
error: failed to parse path: "~~~"
--> $DIR/bad_remote.rs:18:10
--> $DIR/bad_remote.rs:10:10
|
18 | #[derive(Serialize)]
10 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
@@ -1,7 +1,7 @@
error: #[serde(getter = "...")] is not allowed in an enum
--> $DIR/enum_getter.rs:18:10
--> $DIR/enum_getter.rs:10:10
|
18 | #[derive(Serialize)]
10 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
@@ -1,7 +1,7 @@
error[E0063]: missing field `b` in initializer of `remote::S`
--> $DIR/missing_field.rs:20:18
--> $DIR/missing_field.rs:12:18
|
20 | #[serde(remote = "remote::S")]
12 | #[serde(remote = "remote::S")]
| ^^^^^^^^^^^ missing `b`
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
@@ -1,8 +1,8 @@
error: #[serde(getter = "...")] can only be used in structs that have #[serde(remote = "...")]
--> $DIR/nonremote_getter.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/nonremote_getter.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
@@ -1,13 +1,13 @@
error[E0609]: no field `b` on type `&remote::S`
--> $DIR/unknown_field.rs:21:5
--> $DIR/unknown_field.rs:13:5
|
21 | b: u8,
13 | b: u8,
| ^
error[E0560]: struct `remote::S` has no field named `b`
--> $DIR/unknown_field.rs:21:5
--> $DIR/unknown_field.rs:13:5
|
21 | b: u8,
13 | b: u8,
| ^ field does not exist - did you mean `a`?
error: aborting due to 2 previous errors
-8
View File
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
+7 -7
View File
@@ -1,12 +1,12 @@
error[E0308]: mismatched types
--> $DIR/wrong_de.rs:16:10
|
16 | #[derive(Deserialize)]
| ^^^^^^^^^^^ expected u16, found u8
--> $DIR/wrong_de.rs:8:10
|
8 | #[derive(Deserialize)]
| ^^^^^^^^^^^ expected u16, found u8
help: you can cast an `u8` to `u16`, which will zero-extend the source value
|
16 | #[derive(Deserialize.into())]
| ^^^^^^^^^^^^^^^^^^
|
8 | #[derive(Deserialize.into())]
| ^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
@@ -1,7 +1,7 @@
error[E0308]: mismatched types
--> $DIR/wrong_getter.rs:24:10
--> $DIR/wrong_getter.rs:16:10
|
24 | #[derive(Serialize)]
16 | #[derive(Serialize)]
| ^^^^^^^^^ expected u8, found u16
|
= note: expected type `&u8`
-8
View File
@@ -1,11 +1,3 @@
// Copyright 2017 Serde Developers
//
// 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.
#[macro_use]
extern crate serde_derive;
+2 -2
View File
@@ -1,7 +1,7 @@
error[E0308]: mismatched types
--> $DIR/wrong_ser.rs:18:10
--> $DIR/wrong_ser.rs:10:10
|
18 | #[derive(Serialize)]
10 | #[derive(Serialize)]
| ^^^^^^^^^ expected u8, found u16
|
= note: expected type `&u8`