Skip to content

RA is bad at completing rustdoc lints #8349

Closed
@jyn514

Description

@jyn514

This is a couple different bug reports in one; let me know if you'd prefer I open more issues.

  1. Typing rustdoc:: resets the suggestions: https://drive.google.com/file/d/1lY7dDREBvyozmK0tSxYAFuO0ask7btfD/view?usp=sharing (this might just be #![allow(clippy:: incorrectly completes with a leading clippy:: #7144).
  2. Not all rustdoc lints seem to be supported? https://drive.google.com/file/d/1iXFox4VAckasntgoqti6Vzoh5Ndxgsu9/view?usp=sharing

For 2, I think rather than hard-coding the list of lints, RA should discover it from rustdoc itself with -W help (should hopefully be implemented on the next nightly: rust-lang/rust#83895. Then it will always be up to date and won't have to worry about renamed lints and that sort of thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionautocompletionS-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