Skip to main content

select_codes

Function select_codes 

Source
pub fn select_codes<'a>(
    text: &str,
    errors: impl IntoIterator<Item = &'a CompileError>,
    codes: &[String],
) -> Selection
Expand description

select restricted to the diagnostics whose code is in codes (#3537, check --fix=<code>). Naming a code is asking for its fixes, so a hint’s fix is taken when its code is named.