Skip to main content
Module remove_or_use_generic
rustc_
hir_
analysis
1.97.0-beta.4
(36645eb0d 2026-06-12)
Module remove_
or_
use_
generic
Module Items
Structs
Functions
In rustc_
hir_
analysis::
errors
rustc_hir_analysis
::
errors
Module
remove_
or_
use_
generic
Copy item path
Source
Structs
ยง
Param
Usage
Visitor
๐
Use a Visitor to find usages of the type or lifetime parameter
Functions
ยง
suggest_
to_
remove_
or_
use_
generic
๐
Adds a suggestion to a diagnostic to either remove an unused generic parameter, or use it.