about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-09-24 19:24:15 +0300
committerLukas Wirth <lukastw97@gmail.com>2025-01-01 13:49:35 +0100
commitbd6ea14002949c2b2fdf9ec51cce3634b7a15147 (patch)
tree27411f1c1d0e0ef51f52ebf114ab1e49c7153694 /compiler/rustc_codegen_llvm/src/errors.rs
parent88e630b8592ecc9df82bf568160df2e064df35e5 (diff)
downloadrust-bd6ea14002949c2b2fdf9ec51cce3634b7a15147.tar.gz
rust-bd6ea14002949c2b2fdf9ec51cce3634b7a15147.zip
Allow excluding specific traits from completion
To be accurate, only their methods are excluded, the trait themselves are still available.

I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable.

It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently.

Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions