Skip to main content

Module lint_and_remove_uninhabited

Module lint_and_remove_uninhabited 

Source

Re-exportsยง

use rustc_hir::def::DefKind; ๐Ÿ”’
use rustc_lint_defs::builtin::UNREACHABLE_CODE; ๐Ÿ”’
use rustc_middle::ty::TyCtxt; ๐Ÿ”’
use crate::PassPolicy; ๐Ÿ”’
use crate::diagnostics::UnreachableDueToUninhabited; ๐Ÿ”’
use rustc_middle::mir::*; ๐Ÿ”’

Structsยง

LintAndRemoveUninhabited ๐Ÿ”’
Lint unreachable code due to uninhabited values from function calls, and remove return edges from those calls.

Functionsยง

find_unreachable_code_from ๐Ÿ”’
Starting at a target unreachable block, find some user code to lint as unreachable