Re-exportsยง
use std::str::Utf8Error;๐use rustc_ast::LitKind;๐use rustc_hir::Expr;๐use rustc_hir::ExprKind;๐use rustc_lint_defs::declare_lint;๐use rustc_lint_defs::declare_lint_pass;๐use rustc_span::Spanned;๐use rustc_span::sym;๐use crate::diagnostics::InvalidFromUtf8Diag;๐use crate::LateContext;๐use crate::LateLintPass;๐use crate::LintContext;๐
Structsยง
Staticsยง
- INVALID_
FROM_ UTF8 - The
invalid_from_utf8lint checks for calls tostd::str::from_utf8andstd::str::from_utf8_mutwith a known invalid UTF-8 value. - INVALID_
FROM_ UTF8_ UNCHECKED - The
invalid_from_utf8_uncheckedlint checks for calls tostd::str::from_utf8_uncheckedandstd::str::from_utf8_unchecked_mutwith a known invalid UTF-8 value.