{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/2225","repository_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/2225/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/2225/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/2225/events","html_url":"https://github.com/rust-lang-nursery/rustfmt/issues/2225","id":278730635,"number":2225,"title":"Fails to install on rustc 1.24.0-nightly (bb42071f6 2017-12-01)","user":{"login":"CAD97","id":5992217,"avatar_url":"https://avatars1.githubusercontent.com/u/5992217?v=4","gravatar_id":"","url":"https://api.github.com/users/CAD97","html_url":"https://github.com/CAD97","followers_url":"https://api.github.com/users/CAD97/followers","following_url":"https://api.github.com/users/CAD97/following{/other_user}","gists_url":"https://api.github.com/users/CAD97/gists{/gist_id}","starred_url":"https://api.github.com/users/CAD97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CAD97/subscriptions","organizations_url":"https://api.github.com/users/CAD97/orgs","repos_url":"https://api.github.com/users/CAD97/repos","events_url":"https://api.github.com/users/CAD97/events{/privacy}","received_events_url":"https://api.github.com/users/CAD97/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-03T00:18:32Z","updated_at":"2017-12-03T01:03:32Z","closed_at":"2017-12-03T01:03:32Z","author_association":"NONE","body":"```\r\nPS C:\\Users\\CAD97> rustup update\r\ninfo: syncing channel updates for 'stable-x86_64-pc-windows-msvc'\r\ninfo: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'\r\ninfo: checking for self-updates\r\n\r\n   stable-x86_64-pc-windows-msvc unchanged - rustc 1.22.1 (05e2e1c41 2017-11-22)\r\n  nightly-x86_64-pc-windows-msvc unchanged - rustc 1.24.0-nightly (bb42071f6 2017-12-01)\r\n\r\nPS C:\\Users\\CAD97> cargo +nightly install rustfmt-nightly --force\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n  Installing rustfmt-nightly v0.2.16\r\n   Compiling serde v1.0.23\r\n   Compiling getopts v0.2.15\r\n   Compiling winapi v0.2.8\r\n   Compiling regex-syntax v0.4.1\r\n   Compiling libc v0.2.34\r\n   Compiling quote v0.3.15\r\n   Compiling lazy_static v0.2.11\r\n   Compiling utf8-ranges v1.0.0\r\n   Compiling unicode-segmentation v1.2.0\r\n   Compiling void v1.0.2\r\n   Compiling winapi-build v0.1.1\r\n   Compiling diff v0.1.11\r\n   Compiling rustfmt-nightly v0.2.16\r\n   Compiling itoa v0.3.4\r\n   Compiling log v0.3.8\r\n   Compiling num-traits v0.1.41\r\n   Compiling unicode-xid v0.0.4\r\n   Compiling dtoa v0.4.2\r\n   Compiling memchr v2.0.1\r\n   Compiling unreachable v1.0.0\r\n   Compiling kernel32-sys v0.2.2\r\n   Compiling synom v0.11.3\r\n   Compiling strings v0.1.1\r\n   Compiling thread_local v0.3.4\r\n   Compiling aho-corasick v0.6.4\r\n   Compiling syn v0.11.11\r\n   Compiling serde_json v1.0.7\r\n   Compiling toml v0.4.5\r\n   Compiling regex v0.2.3\r\n   Compiling env_logger v0.4.3\r\n   Compiling derive-new v0.5.0\r\n   Compiling serde_derive_internals v0.17.0\r\n   Compiling term v0.4.6\r\n   Compiling serde_derive v1.0.23\r\n```\r\n\r\n<details><summary>Errors</summary>\r\n\r\n```\r\nerror[E0432]: unresolved import `syntax::ast::ViewPath_`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:95:22\r\n   |\r\n95 |     use syntax::ast::ViewPath_::*;\r\n   |                      ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:30:14\r\n   |\r\n30 |         ast::ViewPath_::ViewPathSimple(_, ref p)\r\n   |              ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:31:16\r\n   |\r\n31 |         | ast::ViewPath_::ViewPathGlob(ref p)\r\n   |                ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:32:16\r\n   |\r\n32 |         | ast::ViewPath_::ViewPathList(ref p, _) => p,\r\n   |                ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:152:18\r\n    |\r\n152 |             ast::ViewPath_::ViewPathList(ref path, ref path_list) => {\r\n    |                  ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:155:18\r\n    |\r\n155 |             ast::ViewPath_::ViewPathGlob(ref path) => {\r\n    |                  ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:161:18\r\n    |\r\n161 |             ast::ViewPath_::ViewPathSimple(ident, ref path) => {\r\n    |                  ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:192:18\r\n    |\r\n192 |             ast::ViewPath_::ViewPathList(_, ref path_list)\r\n    |                  ^^^^^^^^^ Could not find `ViewPath_` in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath_` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:28:21\r\n   |\r\n28 | fn path_of(a: &ast::ViewPath_) -> &ast::Path {\r\n   |                     ^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:50:37\r\n   |\r\n50 | fn compare_path_list_items(a: &ast::PathListItem, b: &ast::PathListItem) -> Ordering {\r\n   |                                     ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:50:60\r\n   |\r\n50 | fn compare_path_list_items(a: &ast::PathListItem, b: &ast::PathListItem) -> Ordering {\r\n   |                                                            ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:78:21\r\n   |\r\n78 |     a_items: &[ast::PathListItem],\r\n   |                     ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:79:21\r\n   |\r\n79 |     b_items: &[ast::PathListItem],\r\n   |                     ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath_` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:94:37\r\n   |\r\n94 | fn compare_view_path_types(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {\r\n   |                                     ^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath_` in module `ast`\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:94:57\r\n   |\r\n94 | fn compare_view_path_types(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {\r\n   |                                                         ^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:97:11\r\n   |\r\n97 |         (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {\r\n   |           ^^^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:97:32\r\n   |\r\n97 |         (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {\r\n   |                                ^^^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:97:56\r\n   |\r\n97 |         (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {\r\n   |                                                        ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:97:74\r\n   |\r\n97 |         (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {\r\n   |                                                                          ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:100:11\r\n    |\r\n100 |         (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,\r\n    |           ^^^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:100:38\r\n    |\r\n100 |         (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,\r\n    |                                      ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:100:56\r\n    |\r\n100 |         (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,\r\n    |                                                        ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:101:11\r\n    |\r\n101 |         (&ViewPathList(_, ref a_items), &ViewPathList(_, ref b_items)) => {\r\n    |           ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:101:42\r\n    |\r\n101 |         (&ViewPathList(_, ref a_items), &ViewPathList(_, ref b_items)) => {\r\n    |                                          ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:104:11\r\n    |\r\n104 |         (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,\r\n    |           ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:104:29\r\n    |\r\n104 |         (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,\r\n    |                             ^^^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:104:53\r\n    |\r\n104 |         (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,\r\n    |                                                     ^^^^^^^^^^^^ not found in this scope\r\n\r\nerror[E0412]: cannot find type `ViewPath_` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:108:32\r\n    |\r\n108 | fn compare_view_paths(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {\r\n    |                                ^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath_` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:108:52\r\n    |\r\n108 | fn compare_view_paths(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {\r\n    |                                                    ^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:149:23\r\n    |\r\n149 | impl Rewrite for ast::ViewPath {\r\n    |                       ^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:181:15\r\n    |\r\n181 |     vp: &ast::ViewPath,\r\n    |               ^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `ViewPath` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:279:65\r\n    |\r\n279 |     pub fn format_import(&mut self, item: &ast::Item, vp: &ast::ViewPath) {\r\n    |                                                                 ^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:307:57\r\n    |\r\n307 | fn rewrite_single_use_list(path_str: String, vpi: &ast::PathListItem) -> String {\r\n    |                                                         ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:326:34\r\n    |\r\n326 | fn rewrite_path_item(vpi: &&ast::PathListItem) -> Option<String> {\r\n    |                                  ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:330:51\r\n    |\r\n330 | fn append_alias(path_item_str: String, vpi: &ast::PathListItem) -> String {\r\n    |                                                   ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror[E0412]: cannot find type `PathListItem` in module `ast`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:414:23\r\n    |\r\n414 |     path_list: &[ast::PathListItem],\r\n    |                       ^^^^^^^^^^^^ not found in `ast`\r\n\r\nerror: non-reference pattern used to match a reference (see issue #42640)\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:30:9\r\n   |\r\n30 |         ast::ViewPath_::ViewPathSimple(_, ref p)\r\n   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathSimple(_, ref p)`\r\n   |\r\n   = help: add #![feature(match_default_bindings)] to the crate attributes to enable\r\n\r\nerror: non-reference pattern used to match a reference (see issue #42640)\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:31:11\r\n   |\r\n31 |         | ast::ViewPath_::ViewPathGlob(ref p)\r\n   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathGlob(ref p)`\r\n   |\r\n   = help: add #![feature(match_default_bindings)] to the crate attributes to enable\r\n\r\nerror: non-reference pattern used to match a reference (see issue #42640)\r\n  --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:32:11\r\n   |\r\n32 |         | ast::ViewPath_::ViewPathList(ref p, _) => p,\r\n   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathList(ref p, _)`\r\n   |\r\n   = help: add #![feature(match_default_bindings)] to the crate attributes to enable\r\n\r\nerror[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:118:43\r\n    |\r\n118 |             Some(compare_view_paths(&a_vp.node, &b_vp.node))\r\n    |                                           ^^^^\r\n\r\nerror[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`\r\n   --> .cargo\\registry\\src\\github.com-1ecc6299db9ec823\\rustfmt-nightly-0.2.16\\src\\imports.rs:118:55\r\n    |\r\n118 |             Some(compare_view_paths(&a_vp.node, &b_vp.node))\r\n    |                                                       ^^^^\r\n```\r\n</details><br>\r\n\r\n```\r\nerror: aborting due to 41 previous errors\r\n\r\nerror: failed to compile `rustfmt-nightly v0.2.16`, intermediate artifacts can be found at `D:\\Temp\\cargo-install.yUr6KJ6WW61k`\r\n\r\nCaused by:\r\n  Could not compile `rustfmt-nightly`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```"}}
{"actor":{"display_login":"CAD97"}}