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

get_type_id no longer exists on Rust 1.33.0 #36

Closed
asomers opened this issue Jan 28, 2019 · 1 comment
Closed

get_type_id no longer exists on Rust 1.33.0 #36

asomers opened this issue Jan 28, 2019 · 1 comment

Comments

@asomers
Copy link
Contributor

asomers commented Jan 28, 2019

get_type_id has been stabilized and renamed to type_id in Rust 1.33.0. As a result, Mocktopus no longer builds with a nightly compiler as of 2019-01-25. rust-lang/rust#27745

asomers added a commit to asomers/Mocktopus that referenced this issue Jan 28, 2019
In rust 1.33.0, get_type_id was stabilized and renamed to type_id

Fixes CodeSandwich#36
@leeola
Copy link

leeola commented Apr 4, 2019

Hello, old issue but I ran into the inverse of this issue while using an older nightly (cargo 1.33.0-nightly (2b4a5f1f0 2019-01-12)) for RLS reasons. So, for future Googlers, this error:

foo@bar ~/w/acw-api.rs> cargo test -- --nocapture --ignored
   Compiling mocktopus v0.7.0
error[E0599]: no method named `type_id` found for type `[closure@/Users/foo/.cargo/registry/src/github.com-1ecc6299db9ec823/mocktopus-0.7.0/src/mocking.rs:128:9: 128:15]` in the current scope
   --> /Users/foo/.cargo/registry/src/github.com-1ecc6299db9ec823/mocktopus-0.7.0/src/mocking.rs:128:16
    |
128 |         (||()).type_id()
    |                ^^^^^^^
    |
    = note: (||()) is a function, perhaps you wish to call it

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.

Was fixed with the following:

rustup install nightly-2019-01-26
rustup default nightly-2019-01-26
rustup component add rls-preview rust-analysis rust-src --toolchain nightly-2019-01-26

Note that I used the 26th, not the 25th, as RLS didn't seem to be available for the 25th.

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