Skip to content

Commit

Permalink
Reproduce serde bug
Browse files Browse the repository at this point in the history
   Compiling cargo_metadata v0.9.1 (/home/matklad/projects/cargo_metadata)
error: proc-macro derive panicked
  --> src/messages.rs:99:35
   |
99 | #[derive(Debug, Clone, Serialize, Deserialize)]
   |                                   ^^^^^^^^^^^
   |
   = help: message: index out of bounds: the len is 5 but the index is 5

error: aborting due to previous error

error: could not compile `cargo_metadata`.
  • Loading branch information
matklad committed May 8, 2020
1 parent 78e9115 commit 0b1c8d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ pub enum Message {
BuildFinished(BuildFinished),
/// A line of text which isn't a cargo or compiler message.
/// Line separator is not included
#[serde(skip)]
TextLine(String),
#[doc(hidden)]
#[serde(other)]
Expand Down

0 comments on commit 0b1c8d8

Please sign in to comment.