{"action":"created","issue":{"url":"https://api.github.com/repos/ia0/data-encoding/issues/21","repository_url":"https://api.github.com/repos/ia0/data-encoding","labels_url":"https://api.github.com/repos/ia0/data-encoding/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ia0/data-encoding/issues/21/comments","events_url":"https://api.github.com/repos/ia0/data-encoding/issues/21/events","html_url":"https://github.com/ia0/data-encoding/issues/21","id":328836679,"node_id":"MDU6SXNzdWUzMjg4MzY2Nzk=","number":21,"title":"data-encoding-macro-internal build failed at 1.28.0-nightly (1ffb32147 2018-05-31)","user":{"login":"zoumi","id":5162901,"node_id":"MDQ6VXNlcjUxNjI5MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/5162901?v=4","gravatar_id":"","url":"https://api.github.com/users/zoumi","html_url":"https://github.com/zoumi","followers_url":"https://api.github.com/users/zoumi/followers","following_url":"https://api.github.com/users/zoumi/following{/other_user}","gists_url":"https://api.github.com/users/zoumi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoumi/subscriptions","organizations_url":"https://api.github.com/users/zoumi/orgs","repos_url":"https://api.github.com/users/zoumi/repos","events_url":"https://api.github.com/users/zoumi/events{/privacy}","received_events_url":"https://api.github.com/users/zoumi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-03T15:14:30Z","updated_at":"2018-06-03T17:06:12Z","closed_at":"2018-06-03T17:02:31Z","author_association":"NONE","body":"error message:\r\n```\r\n   Compiling data-encoding-macro-internal v0.1.1 (file:///H:/work/rust_projects/forks/data-encoding/lib/macro/internal)\r\n   Compiling pest_derive v1.0.7\r\n   Compiling derive-error-chain v0.10.1\r\n   Compiling libflate v0.1.14\r\n   Compiling num-rational v0.1.42\r\nerror[E0599]: no variant named `Op` found for type `proc_macro::TokenTree` in the current scope\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:36:14\r\n   |\r\n36 |         Some(TokenTree::Op(x)) if x.op() == op => (),\r\n   |              ^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:53:13\r\n   |\r\n53 |             TokenTree::Term(term) => term.as_str().to_string(),\r\n   |             ^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror[E0277]: the trait bound `str: std::marker::Sized` is not satisfied\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:52:13\r\n   |\r\n52 |         let key = match key {\r\n   |             ^^^ `str` does not have a constant size known at compile-time\r\n   |\r\n   = help: the trait `std::marker::Sized` is not implemented for `str`\r\n   = note: all local variables must have a statically known size\r\n\r\nerror[E0277]: the trait bound `str: std::marker::Sized` is not satisfied\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:58:21\r\n   |\r\n58 |             None => panic!(\"expected value for {}\", key),\r\n   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `str` does not have a constant size known at compile-time\r\n   |\r\n   = help: the trait `std::marker::Sized` is not implemented for `str`\r\n   = note: required by `std::fmt::ArgumentV1::new`\r\n   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)\r\n\r\nerror[E0277]: the trait bound `str: std::marker::Sized` is not satisfied\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:62:21\r\n   |\r\n62 |         let _ = map.insert(key, value);\r\n   |                     ^^^^^^ `str` does not have a constant size known at compile-time\r\n   |\r\n   = help: the trait `std::marker::Sized` is not implemented for `str`\r\n\r\nerror[E0277]: the trait bound `str: std::marker::Sized` is not satisfied\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:50:19\r\n   |\r\n50 |     let mut map = HashMap::new();\r\n   |                   ^^^^^^^^^^^^ `str` does not have a constant size known at compile-time\r\n   |\r\n   = help: the trait `std::marker::Sized` is not implemented for `str`\r\n   = note: required by `<std::collections::HashMap<K, V>>::new`\r\n\r\nerror[E0308]: mismatched types\r\n  --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:64:5\r\n   |\r\n49 | fn parse_map(mut tokens: IntoIter) -> HashMap<String, TokenTree> {\r\n   |                                       -------------------------- expected `std::collections::HashMap<std::string::String, proc_macro::TokenTree>` because of return type\r\n...\r\n64 |     map\r\n   |     ^^^ expected struct `std::string::String`, found str\r\n   |\r\n   = note: expected type `std::collections::HashMap<std::string::String, _, _>`\r\n              found type `std::collections::HashMap<str, _, _>`\r\n\r\nerror[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope\r\n   --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:150:9\r\n    |\r\n150 |         TokenTree::Term(term) if term.as_str() == \"None\" => return None,\r\n    |         ^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope\r\n   --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:173:9\r\n    |\r\n173 |         TokenTree::Term(term) => term,\r\n    |         ^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope\r\n   --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:196:9\r\n    |\r\n196 |         TokenTree::Term(term) if term.as_str() == msb => BitOrder::MostSignificantFirst,\r\n    |         ^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror[E0599]: no variant named `Term` found for type `proc_macro::TokenTree` in the current scope\r\n   --> H:\\work\\rust_projects\\forks\\data-encoding\\lib\\macro\\internal\\src\\lib.rs:197:9\r\n    |\r\n197 |         TokenTree::Term(term) if term.as_str() == lsb => BitOrder::LeastSignificantFirst,\r\n    |         ^^^^^^^^^^^^^^^^^^^^^ variant not found in `proc_macro::TokenTree`\r\n\r\nerror: aborting due to 11 previous errors\r\n\r\nSome errors occurred: E0277, E0308, E0599.\r\nFor more information about an error, try `rustc --explain E0277`.\r\n   Compiling enum_primitive v0.1.1\r\nerror: Could not compile `data-encoding-macro-internal`.\r\nwarning: build failed, waiting for other jobs to finish...\r\nerror: build failed\r\n```\r\n\r\nmy rustup:\r\n```\r\nDefault host: x86_64-pc-windows-gnu\r\n\r\ninstalled toolchains\r\n--------------------\r\n\r\nnightly-2018-04-06-i686-pc-windows-gnu\r\nnightly-2018-04-16-i686-pc-windows-gnu\r\nnightly-2018-04-27-i686-pc-windows-gnu\r\nnightly-2018-05-05-i686-pc-windows-gnu\r\nnightly-2018-06-01-i686-pc-windows-gnu (default)\r\n\r\nactive toolchain\r\n----------------\r\n\r\nnightly-2018-06-01-i686-pc-windows-gnu (default)\r\nrustc 1.28.0-nightly (1ffb32147 2018-05-31)\r\n```\r\n\r\nwe can install the nightly version by:\r\n```\r\nrustup install nightly-2018-06-01-i686-pc-windows-gnu\r\nrustup default nightly-2018-06-01-i686-pc-windows-gnu\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ia0/data-encoding/issues/comments/394176169","html_url":"https://github.com/ia0/data-encoding/issues/21#issuecomment-394176169","issue_url":"https://api.github.com/repos/ia0/data-encoding/issues/21","id":394176169,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE3NjE2OQ==","user":{"login":"ia0","id":969295,"node_id":"MDQ6VXNlcjk2OTI5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/969295?v=4","gravatar_id":"","url":"https://api.github.com/users/ia0","html_url":"https://github.com/ia0","followers_url":"https://api.github.com/users/ia0/followers","following_url":"https://api.github.com/users/ia0/following{/other_user}","gists_url":"https://api.github.com/users/ia0/gists{/gist_id}","starred_url":"https://api.github.com/users/ia0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ia0/subscriptions","organizations_url":"https://api.github.com/users/ia0/orgs","repos_url":"https://api.github.com/users/ia0/repos","events_url":"https://api.github.com/users/ia0/events{/privacy}","received_events_url":"https://api.github.com/users/ia0/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T17:06:12Z","updated_at":"2018-06-03T17:06:12Z","author_association":"OWNER","body":"@zoumi The issue should be fixed and published to crates.io on version 0.1.3. Thanks again for the report!"}}
{"actor":{"display_login":"ia0"}}