Skip to content

Autocomplete fails on Vec after custom allocators support was added #6668

Closed
@andylizi

Description

@andylizi

Description

Autocomplete fails to show any result under specific circumstances:

demo

This problem only seems to happen on rust nightly. It consistently disappears after rustup default stable and restarting the RA server. The bytes crate doesn't seems to have anything cfg'ed on nightly. Functions in other traits (e.g. std::io::Read) seems to work fine.

Environment

  • RA: 2020-11-23 (cadf0e9)
  • VSCode: 1.51.1
  • Rust: 1.50.0-nightly (1c389ffef 2020-11-24)

Minimal reproducible example

  1. Switch to nightly toolchain
  2. Add bytes = "0.6" to dependencies
  3. Add use bytes::{BytesMut, buf::Buf};
  4. Write let buf = BytesMut::new();
  5. Try to complete on buf.<|>

(Verified to be reproducible in Windows Sandbox using a fresh install of Rust, VSCode, and RA without changing any settings)

This is maybe related to #6612, but I'm not sure because a) it doesn't complete no matter what I do or how long I wait; and b) it somehow only appears in Rust nightly.

Edit: see #6668 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions