payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/rust-analyzer/smol_str/issues/14","repository_url":"https://api.github.com/repos/rust-analyzer/smol_str","labels_url":"https://api.github.com/repos/rust-analyzer/smol_str/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/rust-analyzer/smol_str/issues/14/comments","events_url":"https://api.github.com/repos/rust-analyzer/smol_str/issues/14/events","html_url":"https://github.com/rust-analyzer/smol_str/issues/14","id":498264899,"node_id":"MDU6SXNzdWU0OTgyNjQ4OTk=","number":14,"title":"serde breaks when using from_reader with SmolStr","user":{"login":"bbqsrc","id":279099,"node_id":"MDQ6VXNlcjI3OTA5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/279099?v=4","gravatar_id":"","url":"https://api.github.com/users/bbqsrc","html_url":"https://github.com/bbqsrc","followers_url":"https://api.github.com/users/bbqsrc/followers","following_url":"https://api.github.com/users/bbqsrc/following{/other_user}","gists_url":"https://api.github.com/users/bbqsrc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbqsrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbqsrc/subscriptions","organizations_url":"https://api.github.com/users/bbqsrc/orgs","repos_url":"https://api.github.com/users/bbqsrc/repos","events_url":"https://api.github.com/users/bbqsrc/events{/privacy}","received_events_url":"https://api.github.com/users/bbqsrc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-25T12:49:10Z","updated_at":"2019-09-25T12:49:10Z","closed_at":null,"author_association":"NONE","body":"I've made a demonstration of the failures in the form of tests here: https://github.com/bbqsrc/smol_str/commit/e9480f45b7d6e9902ac83fdcc314ce5bf8e7ad9d\r\n\r\nAll of the `_reader` tests fail with the messages:\r\n\r\n```\r\n---- serde_tests::test_serde_reader stdout ----\r\nthread 'serde_tests::test_serde_reader' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"invalid type: string \\\"Hello, World\\\", expected a borrowed string\", line: 1, column: 14)', src/libcore/result.rs:1165:5\r\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.\r\n\r\n---- serde_tests::test_serde_hashmap_reader stdout ----\r\nthread 'serde_tests::test_serde_hashmap_reader' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"invalid type: string \\\"a\\\", expected a borrowed string\", line: 1, column: 5)', src/libcore/result.rs:1165:5\r\n\r\n---- serde_tests::test_serde_struct_reader stdout ----\r\nthread 'serde_tests::test_serde_struct_reader' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"invalid type: string \\\"Hello, World\\\", expected a borrowed string\", line: 1, column: 19)', src/libcore/result.rs:1165:5\r\n\r\n---- serde_tests::test_serde_vec_reader stdout ----\r\nthread 'serde_tests::test_serde_vec_reader' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"invalid type: string \\\"\\\", expected a borrowed string\", line: 1, column: 3)', src/libcore/result.rs:1165:5\r\n```\r\n\r\nTried on the latest stable and the following `nightly` to confirm:\r\n```\r\n$ rustc --version\r\nrustc 1.39.0-nightly (66bf391c3 2019-09-23)"}}
other: {"actor":{"display_login":"bbqsrc"}}