Skip to content

struct Memory is private #2009

@aurexav

Description

@aurexav

Only happens at

rustup default nightly-2020-02-19
rustup target add wasm32-unknown-unknown
  Compiling hyper-rustls v0.17.1
error[E0603]: struct `Memory` is private
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:4873:60
     |
4873 |                 let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                            ^^^^^^ this struct is private
     |
note: the struct `Memory` is defined here
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:3516:5
     |
3516 |     #[wasm_bindgen]
     |     ^^^^^^^^^^^^^^^
     = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0603]: struct `Memory` is private
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:4898:60
     |
4898 |                 let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                            ^^^^^^ this struct is private
     |
note: the struct `Memory` is defined here
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:3516:5
     |
3516 |     #[wasm_bindgen]
     |     ^^^^^^^^^^^^^^^
     = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0603]: struct `Memory` is private
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:4908:60
     |
4908 |                 let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                            ^^^^^^ this struct is private
     |
note: the struct `Memory` is defined here
    --> /Users/xavier/.cargo/registry/src/github.com-1ecc6299db9ec823/js-sys-0.3.35/src/lib.rs:3516:5
     |
3516 |     #[wasm_bindgen]
     |     ^^^^^^^^^^^^^^^
     = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling prost v0.5.0
error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0603`.
error: could not compile `js-sys`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Activity

alexcrichton

alexcrichton commented on Feb 20, 2020

@alexcrichton
Contributor

Thanks for the report! I've opened rust-lang/rust#69315 since this appears to be a regression in rust-lang/rust.

blueto01h

blueto01h commented on Feb 22, 2020

@blueto01h

a colleague and me have the same

Michael-F-Bryan

Michael-F-Bryan commented on Feb 25, 2020

@Michael-F-Bryan

I'm able to compile arcs (which transitively depends on js-sys) on nightly again now. Can this issue be closed?

aurexav

aurexav commented on Feb 25, 2020

@aurexav
Author

I'm able to compile arcs (which transitively depends on js-sys) on nightly again now. Can this issue be closed?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexcrichton@blueto01h@aurexav@Michael-F-Bryan

        Issue actions

          struct `Memory` is private · Issue #2009 · wasm-bindgen/wasm-bindgen