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
@@ -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: failed to parse borrowed lifetimes: "zzz"
--> $DIR/bad_lifetimes.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/bad_lifetimes.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: duplicate borrowed lifetime `'a`
--> $DIR/duplicate_lifetime.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/duplicate_lifetime.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: duplicate serde attribute `borrow`
--> $DIR/duplicate_variant.rs:15:10
|
15 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/duplicate_variant.rs:7:10
|
7 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: at least one lifetime must be borrowed
--> $DIR/empty_lifetimes.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/empty_lifetimes.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: field `s` has no lifetimes to borrow
--> $DIR/no_lifetimes.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/no_lifetimes.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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(borrow)] may only be used on newtype variants
--> $DIR/struct_variant.rs:15:10
|
15 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/struct_variant.rs:7:10
|
7 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: field `s` does not have lifetime 'b
--> $DIR/wrong_lifetime.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/wrong_lifetime.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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: enum tags `conflict` for type and content conflict with each other
--> $DIR/adjacent-tag.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/adjacent-tag.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(flatten)] cannot be used on newtype structs
--> $DIR/flatten-newtype-struct.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/flatten-newtype-struct.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(flatten] can not be combined with #[serde(skip_deserializing)]
--> $DIR/flatten-skip-deserializing.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/flatten-skip-deserializing.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(flatten] can not be combined with #[serde(skip_serializing_if = "...")]
--> $DIR/flatten-skip-serializing-if.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/flatten-skip-serializing-if.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(flatten] can not be combined with #[serde(skip_serializing)]
--> $DIR/flatten-skip-serializing.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/flatten-skip-serializing.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(flatten)] cannot be used on tuple structs
--> $DIR/flatten-tuple-struct.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/flatten-tuple-struct.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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: variant field name `conflict` conflicts with internal tag
--> $DIR/internal-tag.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/internal-tag.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,8 +1,8 @@
error: #[serde(default)] can only be used on structs with named fields
--> $DIR/enum.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/enum.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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(default)] can only be used on structs with named fields
--> $DIR/nameless_struct_fields.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/nameless_struct_fields.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: unknown serde field attribute `serialize`
--> $DIR/rename-and-ser.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/rename-and-ser.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,8 +1,8 @@
error: duplicate serde attribute `rename`
--> $DIR/rename-rename-de.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/rename-rename-de.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,8 +1,8 @@
error: duplicate serde attribute `rename`
--> $DIR/rename-ser-rename-ser.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/rename-ser-rename-ser.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,8 +1,8 @@
error: duplicate serde attribute `rename`
--> $DIR/rename-ser-rename.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/rename-ser-rename.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,8 +1,8 @@
error: duplicate serde attribute `rename`
--> $DIR/rename-ser-ser.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/rename-ser-ser.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,8 +1,8 @@
error: duplicate serde attribute `rename`
--> $DIR/two-rename-ser.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/two-rename-ser.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,8 +1,8 @@
error: duplicate serde attribute `serialize_with`
--> $DIR/with-and-serialize-with.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/with-and-serialize-with.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,8 +1,8 @@
error: #[serde(tag = "...")] cannot be used with tuple variants
--> $DIR/internal-tuple-variant.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/internal-tuple-variant.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,8 +1,8 @@
error: #[serde(tag = "...")] can only be used on enums
--> $DIR/internally-tagged-struct.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/internally-tagged-struct.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,8 +1,8 @@
error: enum cannot be both untagged and internally tagged
--> $DIR/untagged-and-internal.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/untagged-and-internal.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,8 +1,8 @@
error: #[serde(untagged)] can only be used on enums
--> $DIR/untagged-struct.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/untagged-struct.rs:4:10
|
4 | #[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;
+4 -4
View File
@@ -1,8 +1,8 @@
error: `field_identifier` and `variant_identifier` cannot both be set
--> $DIR/both.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/both.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: `field_identifier` can only be used on an enum
--> $DIR/field_struct.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/field_struct.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: field_identifier may only contain unit variants
--> $DIR/field_tuple.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/field_tuple.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: `Other` must be the last variant
--> $DIR/newtype_not_last.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/newtype_not_last.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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(other)] must be on a unit variant
--> $DIR/not_unit.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/not_unit.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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(other)] must be the last variant
--> $DIR/other_not_last.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/other_not_last.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: field identifiers cannot be serialized
--> $DIR/serialize.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/serialize.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,8 +1,8 @@
error: `variant_identifier` can only be used on an enum
--> $DIR/variant_struct.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/variant_struct.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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: variant_identifier may only contain unit variants
--> $DIR/variant_tuple.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/variant_tuple.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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: cannot deserialize when there is a lifetime parameter called 'de
--> $DIR/deserialize_de_lifetime.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/deserialize_de_lifetime.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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: cannot deserialize a dynamically sized struct
--> $DIR/deserialize_dst.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/deserialize_dst.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
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_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`
@@ -1,11 +1,3 @@
// Copyright 2018 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(transparent)] requires struct to have at most one transparent field
--> $DIR/at_most_one.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/at_most_one.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(transparent)] requires at least one field that is neither skipped nor has a default
--> $DIR/de_at_least_one.rs:12:10
|
12 | #[derive(Deserialize)]
| ^^^^^^^^^^^
--> $DIR/de_at_least_one.rs:4:10
|
4 | #[derive(Deserialize)]
| ^^^^^^^^^^^
error: aborting due to previous error
@@ -1,11 +1,3 @@
// Copyright 2018 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(transparent)] requires at least one field that is not skipped
--> $DIR/ser_at_least_one.rs:12:10
|
12 | #[derive(Serialize)]
| ^^^^^^^^^
--> $DIR/ser_at_least_one.rs:4:10
|
4 | #[derive(Serialize)]
| ^^^^^^^^^
error: aborting due to previous error

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