{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/38110","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/38110/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/38110/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/38110/events","html_url":"https://github.com/rust-lang/rust/issues/38110","id":192892781,"number":38110,"title":"Wrong suggestion in module declaration error message","user":{"login":"dawirstejeck","id":13430670,"avatar_url":"https://avatars.githubusercontent.com/u/13430670?v=3","gravatar_id":"","url":"https://api.github.com/users/dawirstejeck","html_url":"https://github.com/dawirstejeck","followers_url":"https://api.github.com/users/dawirstejeck/followers","following_url":"https://api.github.com/users/dawirstejeck/following{/other_user}","gists_url":"https://api.github.com/users/dawirstejeck/gists{/gist_id}","starred_url":"https://api.github.com/users/dawirstejeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawirstejeck/subscriptions","organizations_url":"https://api.github.com/users/dawirstejeck/orgs","repos_url":"https://api.github.com/users/dawirstejeck/repos","events_url":"https://api.github.com/users/dawirstejeck/events{/privacy}","received_events_url":"https://api.github.com/users/dawirstejeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jseyfried","id":8652869,"avatar_url":"https://avatars.githubusercontent.com/u/8652869?v=3","gravatar_id":"","url":"https://api.github.com/users/jseyfried","html_url":"https://github.com/jseyfried","followers_url":"https://api.github.com/users/jseyfried/followers","following_url":"https://api.github.com/users/jseyfried/following{/other_user}","gists_url":"https://api.github.com/users/jseyfried/gists{/gist_id}","starred_url":"https://api.github.com/users/jseyfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseyfried/subscriptions","organizations_url":"https://api.github.com/users/jseyfried/orgs","repos_url":"https://api.github.com/users/jseyfried/repos","events_url":"https://api.github.com/users/jseyfried/events{/privacy}","received_events_url":"https://api.github.com/users/jseyfried/received_events","type":"User","site_admin":false},"assignees":[{"login":"jseyfried","id":8652869,"avatar_url":"https://avatars.githubusercontent.com/u/8652869?v=3","gravatar_id":"","url":"https://api.github.com/users/jseyfried","html_url":"https://github.com/jseyfried","followers_url":"https://api.github.com/users/jseyfried/followers","following_url":"https://api.github.com/users/jseyfried/following{/other_user}","gists_url":"https://api.github.com/users/jseyfried/gists{/gist_id}","starred_url":"https://api.github.com/users/jseyfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseyfried/subscriptions","organizations_url":"https://api.github.com/users/jseyfried/orgs","repos_url":"https://api.github.com/users/jseyfried/repos","events_url":"https://api.github.com/users/jseyfried/events{/privacy}","received_events_url":"https://api.github.com/users/jseyfried/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-01T16:21:44Z","updated_at":"2016-12-08T01:32:17Z","closed_at":null,"body":"Maybe this bug is related to #36146.\r\n# Library structure\r\n```\r\nsrc/lib.rs\r\nsrc/foo/mod.rs\r\nsrc/foo/bar.rs\r\n```\r\n\r\nsrc/lib.rs:\r\n`pub mod foo;`\r\n\r\nsrc/foo/mod.rs:\r\n`pub mod bar;`\r\n\r\nsrc/foo/bar.rs\r\n`pub mod baz;`\r\n\r\n# Error\r\nCurrently:\r\n```\r\nerror: cannot declare a new module at this location\r\n --> foo\\bar.rs:1:9\r\n  |\r\n1 | pub mod baz;\r\n  |         ^^^\r\n  |\r\nnote: maybe move this module `foo` to its own directory via `foo/mod.rs`\r\n --> foo\\bar.rs:1:9\r\n  |\r\n1 | pub mod baz;\r\n  |         ^^^\r\n```\r\nShould be:\r\n```\r\n  error: cannot declare a new module at this location\r\n   --> foo\\bar.rs:1:9\r\n    |\r\n  1 | pub mod baz;\r\n    |         ^^^\r\n    |\r\n- note: maybe move this module `foo` to its own directory via `foo/mod.rs`\r\n+ note: maybe move this module `bar` to its own directory via `bar/mod.rs`\r\n   --> foo\\bar.rs:1:9\r\n    |\r\n  1 | pub mod baz;\r\n    |         ^^^\r\n```\r\nAdditionally, I don't understand what to make of the repeated code excerpt."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/265627417","html_url":"https://github.com/rust-lang/rust/issues/38110#issuecomment-265627417","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/38110","id":265627417,"user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T01:32:17Z","updated_at":"2016-12-08T01:32:17Z","body":"@jseyfried: Still working on it?"}}
{"actor":{"display_login":"GuillaumeGomez"}}