{"action":"created","issue":{"url":"https://api.github.com/repos/dtolnay/typetag/issues/18","repository_url":"https://api.github.com/repos/dtolnay/typetag","labels_url":"https://api.github.com/repos/dtolnay/typetag/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/dtolnay/typetag/issues/18/comments","events_url":"https://api.github.com/repos/dtolnay/typetag/issues/18/events","html_url":"https://github.com/dtolnay/typetag/issues/18","id":497614934,"node_id":"MDU6SXNzdWU0OTc2MTQ5MzQ=","number":18,"title":"Surprising test failure on FreeBSD","user":{"login":"pizzamig","id":57148,"node_id":"MDQ6VXNlcjU3MTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/57148?v=4","gravatar_id":"","url":"https://api.github.com/users/pizzamig","html_url":"https://github.com/pizzamig","followers_url":"https://api.github.com/users/pizzamig/followers","following_url":"https://api.github.com/users/pizzamig/following{/other_user}","gists_url":"https://api.github.com/users/pizzamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pizzamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizzamig/subscriptions","organizations_url":"https://api.github.com/users/pizzamig/orgs","repos_url":"https://api.github.com/users/pizzamig/repos","events_url":"https://api.github.com/users/pizzamig/events{/privacy}","received_events_url":"https://api.github.com/users/pizzamig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-09-24T11:00:13Z","updated_at":"2019-10-01T19:46:33Z","closed_at":null,"author_association":"NONE","body":"Running `cargo test` on FreeBSD surprisingly fails.\r\nI say surprisingly, because I don't see operating system dependent section that can cause it.\r\nI guess, that deserialization is the problem. Here the output:\r\n```\r\nrunning 11 tests\r\ntest adjacently_tagged::test_json_serialize ... ok\r\ntest adjacently_tagged::test_bincode_round_trip ... FAILED\r\ntest adjacently_tagged::test_json_deserialize ... FAILED\r\ntest externally_tagged::test_bincode_round_trip ... FAILED\r\ntest externally_tagged::test_json_serialize ... ok\r\ntest externally_tagged::test_json_deserialize ... FAILED\r\ntest internally_tagged::test_json_serialize ... ok\r\ntest marker_traits::deserialize ... ok\r\ntest marker_traits::test_serialize ... ok\r\ntest internally_tagged::test_bincode_round_trip ... FAILED\r\ntest internally_tagged::test_json_deserialize ... FAILED\r\n\r\nfailures:\r\n\r\n---- adjacently_tagged::test_bincode_round_trip stdout ----\r\nthread 'adjacently_tagged::test_bincode_round_trip' panicked at 'called `Result::unwrap()` on an `Err` value: Custom(\"unknown variant `A`, there are no variants\")', src/libcore/result.rs:999:5\r\n\r\n---- adjacently_tagged::test_json_deserialize stdout ----\r\nthread 'adjacently_tagged::test_json_deserialize' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"unknown variant `B`, there are no variants\", line: 1, column: 11)', src/libcore/result.rs:999:5\r\nnote: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.\r\n\r\n---- externally_tagged::test_bincode_round_trip stdout ----\r\nthread 'externally_tagged::test_bincode_round_trip' panicked at 'called `Result::unwrap()` on an `Err` value: Custom(\"unknown variant `A`, there are no variants\")', src/libcore/result.rs:999:5\r\n\r\n---- externally_tagged::test_json_deserialize stdout ----\r\nthread 'externally_tagged::test_json_deserialize' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"unknown variant `B`, there are no variants\", line: 1, column: 4)', src/libcore/result.rs:999:5\r\n\r\n---- internally_tagged::test_bincode_round_trip stdout ----\r\nthread 'internally_tagged::test_bincode_round_trip' panicked at 'called `Result::unwrap()` on an `Err` value: Custom(\"unknown variant `A`, there are no variants\")', src/libcore/result.rs:999:5\r\n\r\n---- internally_tagged::test_json_deserialize stdout ----\r\nthread 'internally_tagged::test_json_deserialize' panicked at 'called `Result::unwrap()` on an `Err` value: Error(\"unknown variant `B`, there are no variants\", line: 1, column: 11)', src/libcore/result.rs:999:5\r\n```\r\nAny idea why it's happening?\r\nI'd more than happy to contribute with a patch, but I don't know where to start."},"comment":{"url":"https://api.github.com/repos/dtolnay/typetag/issues/comments/537198556","html_url":"https://github.com/dtolnay/typetag/issues/18#issuecomment-537198556","issue_url":"https://api.github.com/repos/dtolnay/typetag/issues/18","id":537198556,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNzE5ODU1Ng==","user":{"login":"pizzamig","id":57148,"node_id":"MDQ6VXNlcjU3MTQ4","avatar_url":"https://avatars3.githubusercontent.com/u/57148?v=4","gravatar_id":"","url":"https://api.github.com/users/pizzamig","html_url":"https://github.com/pizzamig","followers_url":"https://api.github.com/users/pizzamig/followers","following_url":"https://api.github.com/users/pizzamig/following{/other_user}","gists_url":"https://api.github.com/users/pizzamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pizzamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pizzamig/subscriptions","organizations_url":"https://api.github.com/users/pizzamig/orgs","repos_url":"https://api.github.com/users/pizzamig/repos","events_url":"https://api.github.com/users/pizzamig/events{/privacy}","received_events_url":"https://api.github.com/users/pizzamig/received_events","type":"User","site_admin":false},"created_at":"2019-10-01T19:46:33Z","updated_at":"2019-10-01T19:46:33Z","author_association":"NONE","body":"I've found the crate OS dependant: `ctor` , used by `inventory`\r\nOnce `ctor` has FreeBSD support, all tests are fine.\r\nI'll send a PR"}}
{"actor":{"display_login":"pizzamig"}}