Closed
Description
PS C:\Users\CAD97> rustup update
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: syncing channel updates for 'nightly-x86_64-pc-windows-msvc'
info: checking for self-updates
stable-x86_64-pc-windows-msvc unchanged - rustc 1.22.1 (05e2e1c41 2017-11-22)
nightly-x86_64-pc-windows-msvc unchanged - rustc 1.24.0-nightly (bb42071f6 2017-12-01)
PS C:\Users\CAD97> cargo +nightly install rustfmt-nightly --force
Updating registry `https://github.com/rust-lang/crates.io-index`
Installing rustfmt-nightly v0.2.16
Compiling serde v1.0.23
Compiling getopts v0.2.15
Compiling winapi v0.2.8
Compiling regex-syntax v0.4.1
Compiling libc v0.2.34
Compiling quote v0.3.15
Compiling lazy_static v0.2.11
Compiling utf8-ranges v1.0.0
Compiling unicode-segmentation v1.2.0
Compiling void v1.0.2
Compiling winapi-build v0.1.1
Compiling diff v0.1.11
Compiling rustfmt-nightly v0.2.16
Compiling itoa v0.3.4
Compiling log v0.3.8
Compiling num-traits v0.1.41
Compiling unicode-xid v0.0.4
Compiling dtoa v0.4.2
Compiling memchr v2.0.1
Compiling unreachable v1.0.0
Compiling kernel32-sys v0.2.2
Compiling synom v0.11.3
Compiling strings v0.1.1
Compiling thread_local v0.3.4
Compiling aho-corasick v0.6.4
Compiling syn v0.11.11
Compiling serde_json v1.0.7
Compiling toml v0.4.5
Compiling regex v0.2.3
Compiling env_logger v0.4.3
Compiling derive-new v0.5.0
Compiling serde_derive_internals v0.17.0
Compiling term v0.4.6
Compiling serde_derive v1.0.23
Errors
error[E0432]: unresolved import `syntax::ast::ViewPath_`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:95:22
|
95 | use syntax::ast::ViewPath_::*;
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:30:14
|
30 | ast::ViewPath_::ViewPathSimple(_, ref p)
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:31:16
|
31 | | ast::ViewPath_::ViewPathGlob(ref p)
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:32:16
|
32 | | ast::ViewPath_::ViewPathList(ref p, _) => p,
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:152:18
|
152 | ast::ViewPath_::ViewPathList(ref path, ref path_list) => {
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:155:18
|
155 | ast::ViewPath_::ViewPathGlob(ref path) => {
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:161:18
|
161 | ast::ViewPath_::ViewPathSimple(ident, ref path) => {
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0433]: failed to resolve. Could not find `ViewPath_` in `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:192:18
|
192 | ast::ViewPath_::ViewPathList(_, ref path_list)
| ^^^^^^^^^ Could not find `ViewPath_` in `ast`
error[E0412]: cannot find type `ViewPath_` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:28:21
|
28 | fn path_of(a: &ast::ViewPath_) -> &ast::Path {
| ^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:50:37
|
50 | fn compare_path_list_items(a: &ast::PathListItem, b: &ast::PathListItem) -> Ordering {
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:50:60
|
50 | fn compare_path_list_items(a: &ast::PathListItem, b: &ast::PathListItem) -> Ordering {
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:78:21
|
78 | a_items: &[ast::PathListItem],
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:79:21
|
79 | b_items: &[ast::PathListItem],
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath_` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:94:37
|
94 | fn compare_view_path_types(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {
| ^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath_` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:94:57
|
94 | fn compare_view_path_types(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {
| ^^^^^^^^^ not found in `ast`
error[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:97:11
|
97 | (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {
| ^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:97:32
|
97 | (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {
| ^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:97:56
|
97 | (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:97:74
|
97 | (&ViewPathSimple(..), &ViewPathSimple(..)) | (&ViewPathGlob(_), &ViewPathGlob(_)) => {
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:100:11
|
100 | (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,
| ^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:100:38
|
100 | (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:100:56
|
100 | (&ViewPathSimple(..), _) | (&ViewPathGlob(_), &ViewPathList(..)) => Ordering::Less,
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:101:11
|
101 | (&ViewPathList(_, ref a_items), &ViewPathList(_, ref b_items)) => {
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:101:42
|
101 | (&ViewPathList(_, ref a_items), &ViewPathList(_, ref b_items)) => {
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathGlob` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:104:11
|
104 | (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,
| ^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathSimple` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:104:29
|
104 | (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,
| ^^^^^^^^^^^^^^ not found in this scope
error[E0531]: cannot find tuple struct/variant `ViewPathList` in this scope
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:104:53
|
104 | (&ViewPathGlob(_), &ViewPathSimple(..)) | (&ViewPathList(..), _) => Ordering::Greater,
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `ViewPath_` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:108:32
|
108 | fn compare_view_paths(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {
| ^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath_` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:108:52
|
108 | fn compare_view_paths(a: &ast::ViewPath_, b: &ast::ViewPath_) -> Ordering {
| ^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:149:23
|
149 | impl Rewrite for ast::ViewPath {
| ^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:181:15
|
181 | vp: &ast::ViewPath,
| ^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `ViewPath` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:279:65
|
279 | pub fn format_import(&mut self, item: &ast::Item, vp: &ast::ViewPath) {
| ^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:307:57
|
307 | fn rewrite_single_use_list(path_str: String, vpi: &ast::PathListItem) -> String {
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:326:34
|
326 | fn rewrite_path_item(vpi: &&ast::PathListItem) -> Option<String> {
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:330:51
|
330 | fn append_alias(path_item_str: String, vpi: &ast::PathListItem) -> String {
| ^^^^^^^^^^^^ not found in `ast`
error[E0412]: cannot find type `PathListItem` in module `ast`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:414:23
|
414 | path_list: &[ast::PathListItem],
| ^^^^^^^^^^^^ not found in `ast`
error: non-reference pattern used to match a reference (see issue #42640)
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:30:9
|
30 | ast::ViewPath_::ViewPathSimple(_, ref p)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathSimple(_, ref p)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
error: non-reference pattern used to match a reference (see issue #42640)
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:31:11
|
31 | | ast::ViewPath_::ViewPathGlob(ref p)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathGlob(ref p)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
error: non-reference pattern used to match a reference (see issue #42640)
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:32:11
|
32 | | ast::ViewPath_::ViewPathList(ref p, _) => p,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ast::ViewPath_::ViewPathList(ref p, _)`
|
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
error[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:118:43
|
118 | Some(compare_view_paths(&a_vp.node, &b_vp.node))
| ^^^^
error[E0609]: no field `node` on type `&syntax::ptr::P<syntax::ast::UseTree>`
--> .cargo\registry\src\github.com-1ecc6299db9ec823\rustfmt-nightly-0.2.16\src\imports.rs:118:55
|
118 | Some(compare_view_paths(&a_vp.node, &b_vp.node))
| ^^^^
error: aborting due to 41 previous errors
error: failed to compile `rustfmt-nightly v0.2.16`, intermediate artifacts can be found at `D:\Temp\cargo-install.yUr6KJ6WW61k`
Caused by:
Could not compile `rustfmt-nightly`.
To learn more, run the command again with --verbose.
Metadata
Metadata
Assignees
Labels
No labels