Skip to main content

Module non_fmt_panic

Module non_fmt_panic 

Source

Re-exportsยง

use rustc_ast as ast; ๐Ÿ”’
use rustc_attr_ir::lang_items::LangItem; ๐Ÿ”’
use rustc_errors::Applicability; ๐Ÿ”’
use rustc_errors::Diag; ๐Ÿ”’
use rustc_errors::DiagCtxtHandle; ๐Ÿ”’
use rustc_errors::Diagnostic; ๐Ÿ”’
use rustc_errors::Level; ๐Ÿ”’
use rustc_errors::msg; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_infer::infer::TyCtxtInferExt; ๐Ÿ”’
use rustc_lint_defs::declare_lint; ๐Ÿ”’
use rustc_lint_defs::declare_lint_pass; ๐Ÿ”’
use rustc_lint_defs::fcw; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_parse_format::ParseMode; ๐Ÿ”’
use rustc_parse_format::Parser; ๐Ÿ”’
use rustc_parse_format::Piece; ๐Ÿ”’
use rustc_span::InnerSpan; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use rustc_span::hygiene; ๐Ÿ”’
use rustc_span::sym; ๐Ÿ”’
use rustc_trait_selection::infer::InferCtxtExt; ๐Ÿ”’
use crate::diagnostics::NonFmtPanicBraces; ๐Ÿ”’
use crate::diagnostics::NonFmtPanicUnused; ๐Ÿ”’
use crate::LateContext; ๐Ÿ”’
use crate::LateLintPass; ๐Ÿ”’
use crate::LintContext; ๐Ÿ”’

Structsยง

NonPanicFmt
PanicMessageNotLiteral ๐Ÿ”’

Staticsยง

NON_FMT_PANICS ๐Ÿ”’
The non_fmt_panics lint detects panic!(..) invocations where the first argument is not a formatting string.

Functionsยง

check_panic ๐Ÿ”’
check_panic_str ๐Ÿ”’
find_delimiters ๐Ÿ”’
Given the span of some_macro!(args);, gives the span of ( and ), and the type of (opening) delimiter used.
is_arg_inside_call ๐Ÿ”’
panic_call ๐Ÿ”’