{"action":"created","issue":{"url":"https://api.github.com/repos/google/flatbuffers/issues/4967","repository_url":"https://api.github.com/repos/google/flatbuffers","labels_url":"https://api.github.com/repos/google/flatbuffers/issues/4967/labels{/name}","comments_url":"https://api.github.com/repos/google/flatbuffers/issues/4967/comments","events_url":"https://api.github.com/repos/google/flatbuffers/issues/4967/events","html_url":"https://github.com/google/flatbuffers/issues/4967","id":366488580,"node_id":"MDU6SXNzdWUzNjY0ODg1ODA=","number":4967,"title":"Rust - cannot infer an appropriate lifetime for autoref due to conflicting requirements","user":{"login":"rumatoest","id":1499231,"node_id":"MDQ6VXNlcjE0OTkyMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1499231?v=4","gravatar_id":"","url":"https://api.github.com/users/rumatoest","html_url":"https://github.com/rumatoest","followers_url":"https://api.github.com/users/rumatoest/followers","following_url":"https://api.github.com/users/rumatoest/following{/other_user}","gists_url":"https://api.github.com/users/rumatoest/gists{/gist_id}","starred_url":"https://api.github.com/users/rumatoest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rumatoest/subscriptions","organizations_url":"https://api.github.com/users/rumatoest/orgs","repos_url":"https://api.github.com/users/rumatoest/repos","events_url":"https://api.github.com/users/rumatoest/events{/privacy}","received_events_url":"https://api.github.com/users/rumatoest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-03T19:19:14Z","updated_at":"2018-10-25T01:55:41Z","closed_at":null,"author_association":"NONE","body":"In my project I'm observing many similar erros like:\r\nUsing \r\ncargo 1.28.0\r\nrustc 1.28.0 (9634041f0 2018-07-30)\r\n\r\n```\r\nerror[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements\r\n  240 |     self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(OutBlock::VT_SERVICE_NAME, None)\r\n    |               ^^^\r\n  note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 239:3...\r\n      |\r\n239 |   pub fn service_name(&self) -> Option<&'a str> {\r\n240 | |     self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(OutBlock::VT_SERVICE_NAME, None)\r\n241 | |   }\r\n    | |___^\r\nnote: ...so that reference does not outlive borrowed content\r\n    |\r\n240 |     self._tab.get::<flatbuffers::ForwardsUOffset<&str>>(OutBlock::VT_SERVICE_NAME, None)\r\n    |     ^^^^^^^^^\r\nnote: but, the lifetime must be valid for the lifetime 'a as defined on the impl at 218:1...\r\n    |\r\n218 | impl<'a> OutBlock<'a> {\r\n    | ^^^^^^^^^^^^^^^^^^^^^\r\n    = note: ...so that the expression is assignable:\r\n            expected std::option::Option<&'a str>\r\n               found std::option::Option<&str>\r\n```\r\n\r\nMy schema structure is \r\n```\r\nnamespace arprotocol;\r\n\r\n// Image format types\r\nenum Format : ubyte { LAB = 0, RGBX = 1, GRAY = 10 }\r\n\r\ntable OutImage {\r\n    // Image format code\r\n    fmt: Format;\r\n    width: uint16;\r\n    height: uint16;\r\n    // Content length should be width*height\r\n    content: [ubyte];\r\n}\r\n\r\n// Single output block related to particular service in processing chain\r\ntable OutBlock {\r\n    service_name: string;\r\n    images: [OutImage];\r\n}\r\n\r\ntable ServiceResponse {\r\n    // Is response succesfull or not\r\n    success: bool;\r\n    // Should have some info on error\r\n    message: string;\r\n    // Number of media blocks attached\r\n    blocks:[OutBlock];\r\n}\r\n\r\nroot_type ServiceResponse;\r\n```"},"comment":{"url":"https://api.github.com/repos/google/flatbuffers/issues/comments/432886360","html_url":"https://github.com/google/flatbuffers/issues/4967#issuecomment-432886360","issue_url":"https://api.github.com/repos/google/flatbuffers/issues/4967","id":432886360,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg4NjM2MA==","user":{"login":"rw","id":21367,"node_id":"MDQ6VXNlcjIxMzY3","avatar_url":"https://avatars2.githubusercontent.com/u/21367?v=4","gravatar_id":"","url":"https://api.github.com/users/rw","html_url":"https://github.com/rw","followers_url":"https://api.github.com/users/rw/followers","following_url":"https://api.github.com/users/rw/following{/other_user}","gists_url":"https://api.github.com/users/rw/gists{/gist_id}","starred_url":"https://api.github.com/users/rw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rw/subscriptions","organizations_url":"https://api.github.com/users/rw/orgs","repos_url":"https://api.github.com/users/rw/repos","events_url":"https://api.github.com/users/rw/events{/privacy}","received_events_url":"https://api.github.com/users/rw/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T01:55:41Z","updated_at":"2018-10-25T01:55:41Z","author_association":"COLLABORATOR","body":"@Tommytrg Does this happen on Rust stable? The `.map` is on an `Option` -- there is no iterator there -- not sure how that could possibly happen."}}
{"actor":{"display_login":"rw"}}