Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to comple on Rust Nightly. #297

Closed
da2ce7 opened this issue Mar 18, 2020 · 5 comments
Closed

Unable to comple on Rust Nightly. #297

da2ce7 opened this issue Mar 18, 2020 · 5 comments

Comments

@da2ce7
Copy link

da2ce7 commented Mar 18, 2020

   Compiling wayland-protocols v0.23.6
error: unexpected closing delimiter: `}`
   --> /home/cgarnham/dev/basalt/target/debug/build/wayland-protocols-d1dcf705399c967b/out/fullscreen-shell-v1_client_api.rs:728:1
    |
655 |         fn capability(&mut self, object: ZwpFullscreenShellV1, capability: u32) {}
    |                                                                                 -- this block is empty, you might have not meant to close it
...
728 | }
    | ^ unexpected closing delimiter

error: aborting due to previous error

error: could not compile `wayland-protocols`.
@elinorbgr
Copy link
Member

This looks very similar to #291, which nightly are you using?

@da2ce7

This comment has been minimized.

@da2ce7
Copy link
Author

da2ce7 commented Mar 21, 2020

@vberger Correct version is:
cargo +nightly version cargo 1.44.0-nightly (7019b3ed3 2020-03-17)

@da2ce7
Copy link
Author

da2ce7 commented Mar 21, 2020

Git Clone https://github.com/AustinJ235/basalt

[cgarnham@cameron-laptop basalt]$ cargo +nightly build --verbose
       Fresh autocfg v1.0.0
       Fresh cfg-if v0.1.10
       Fresh cc v1.0.50
       Fresh lazy_static v1.4.0
       Fresh pkg-config v0.3.17
       Fresh unicode-xid v0.1.0
       Fresh scopeguard v1.1.0
       Fresh xml-rs v0.8.0
       Fresh void v1.0.2
       Fresh slab v0.4.2
       Fresh either v1.5.3
       Fresh lazycell v1.2.1
       Fresh unicode-xid v0.2.0
       Fresh arrayvec v0.5.1
       Fresh smallvec v1.2.0
       Fresh alloc-no-stdlib v2.0.1
       Fresh downcast-rs v1.1.1
       Fresh same-file v1.0.6
       Fresh adler32 v1.0.4
       Fresh xdg v2.2.0
       Fresh lzw v0.10.0
       Fresh fnv v1.0.6
       Fresh half v1.5.0
       Fresh color_quant v1.0.1
       Fresh vk-sys v0.5.1
       Fresh instant v0.1.2
       Fresh openssl-probe v0.1.2
       Fresh scoped_threadpool v0.1.9
       Fresh percent-encoding v2.1.0
       Fresh arc-swap v0.4.4
       Fresh cmake v0.1.42
       Fresh lock_api v0.3.3
       Fresh itertools v0.8.2
       Fresh alloc-stdlib v0.2.1
       Fresh walkdir v2.3.1
       Fresh inflate v0.4.5
       Fresh gif v0.10.3
       Fresh libc v0.2.68
       Fresh proc-macro2 v0.4.30
       Fresh byteorder v1.3.4
       Fresh maybe-uninit v2.0.0
       Fresh bitflags v1.2.1
       Fresh log v0.4.8
       Fresh crc32fast v1.2.0
       Fresh proc-macro2 v1.0.9
       Fresh brotli-decompressor v2.3.0
       Fresh encoding_rs v0.8.22
       Fresh iovec v0.1.4
       Fresh net2 v0.2.33
       Fresh num_cpus v1.12.0
       Fresh parking_lot_core v0.7.0
       Fresh shared_library v0.1.9
       Fresh memmap v0.7.0
       Fresh socket2 v0.3.11
       Fresh raw-window-handle v0.3.3
       Fresh num-traits v0.2.11
       Fresh crossbeam-utils v0.7.2
       Fresh memoffset v0.5.4
       Fresh libloading v0.5.2
       Fresh libz-sys v1.0.25
       Fresh openssl-sys v0.9.54
       Fresh quote v0.6.13
       Fresh stb_truetype v0.3.1
       Fresh deflate v0.7.20
       Fresh x11-dl v2.18.5
       Fresh nix v0.14.1
       Fresh quote v1.0.3
       Fresh mio v0.6.21
       Fresh parking_lot v0.10.0
       Fresh num-integer v0.1.42
       Fresh ordered-float v1.0.2
       Fresh approx v0.3.2
       Fresh num-complex v0.2.4
       Fresh line_drawing v0.7.0
       Fresh crossbeam-epoch v0.8.2
       Fresh crossbeam-queue v0.2.1
       Fresh dlib v0.4.1
       Fresh crossbeam-channel v0.4.2
       Fresh shaderc-sys v0.6.2
       Fresh flate2 v1.0.14
       Fresh wayland-scanner v0.23.6
       Fresh syn v0.15.44
       Fresh curl-sys v0.4.30+curl-7.69.1
       Fresh png v0.15.3
       Fresh mio-extras v2.0.6
       Fresh syn v1.0.16
       Fresh num-bigint v0.2.6
       Fresh num-iter v0.1.40
       Fresh rusttype v0.8.2
       Fresh crossbeam-deque v0.7.3
       Fresh wayland-sys v0.23.6
       Fresh shaderc v0.6.2
       Fresh num-derive v0.2.5
       Fresh curl v0.4.28
       Fresh calloop v0.4.4
       Fresh num-rational v0.2.4
       Fresh rusttype v0.7.9
       Fresh wayland-commons v0.23.6
       Fresh rayon-core v1.7.0
       Fresh crossbeam v0.7.3
       Fresh vulkano-shaders v0.18.0
       Fresh tiff v0.3.1
       Fresh num v0.2.1
       Fresh rayon v1.3.0
       Fresh andrew v0.2.1
       Fresh wayland-client v0.23.6
       Fresh vulkano v0.18.0
       Fresh allsorts v0.3.0
   Compiling wayland-protocols v0.23.6
       Fresh jpeg-decoder v0.1.18
     Running `rustc --crate-name wayland_protocols /home/cgarnham/.cargo/registry/src/github.com-1ecc6299db9ec823/wayland-protocols-0.23.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="client"' --cfg 'feature="unstable_protocols"' --cfg 'feature="wayland-client"' -C metadata=7b4cd4ef3b50a907 -C extra-filename=-7b4cd4ef3b50a907 --out-dir /home/cgarnham/dev/basalt/target/debug/deps -L dependency=/home/cgarnham/dev/basalt/target/debug/deps --extern bitflags=/home/cgarnham/dev/basalt/target/debug/deps/libbitflags-461195182a0cf5c0.rmeta --extern wayland_client=/home/cgarnham/dev/basalt/target/debug/deps/libwayland_client-57b48456e9d994ba.rmeta --extern wayland_commons=/home/cgarnham/dev/basalt/target/debug/deps/libwayland_commons-deec51620a80a24e.rmeta --cap-lints allow -L native=/home/cgarnham/dev/basalt/target/debug/build/libloading-16642cad93afd0bb/out`
       Fresh ilmenite v0.0.1 (/home/cgarnham/dev/ilmenite)
       Fresh image v0.22.5
error: unexpected closing delimiter: `}`
   --> /home/cgarnham/dev/basalt/target/debug/build/wayland-protocols-2b396939582e02e1/out/fullscreen-shell-v1_client_api.rs:728:1
    |
655 |         fn capability(&mut self, object: ZwpFullscreenShellV1, capability: u32) {}
    |                                                                                 -- this block is empty, you might have not meant to close it
...
728 | }
    | ^ unexpected closing delimiter

error: aborting due to previous error

error: could not compile `wayland-protocols`.

Caused by:
  process didn't exit successfully: `rustc --crate-name wayland_protocols /home/cgarnham/.cargo/registry/src/github.com-1ecc6299db9ec823/wayland-protocols-0.23.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg 'feature="client"' --cfg 'feature="unstable_protocols"' --cfg 'feature="wayland-client"' -C metadata=7b4cd4ef3b50a907 -C extra-filename=-7b4cd4ef3b50a907 --out-dir /home/cgarnham/dev/basalt/target/debug/deps -L dependency=/home/cgarnham/dev/basalt/target/debug/deps --extern bitflags=/home/cgarnham/dev/basalt/target/debug/deps/libbitflags-461195182a0cf5c0.rmeta --extern wayland_client=/home/cgarnham/dev/basalt/target/debug/deps/libwayland_client-57b48456e9d994ba.rmeta --extern wayland_commons=/home/cgarnham/dev/basalt/target/debug/deps/libwayland_commons-deec51620a80a24e.rmeta --cap-lints allow -L native=/home/cgarnham/dev/basalt/target/debug/build/libloading-16642cad93afd0bb/out` (exit code: 1)

@elinorbgr
Copy link
Member

As explained on #291 thread, the normalize_doc_attributes option of rustfmt is buggy and breaks wayland-rs code generation (see rust-lang/rustfmt#3988). You'll need to remove it from your rustfmt.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants