Skip to main content

Module runtime_symbols

Module runtime_symbols 

Source

Re-exportsยง

use rustc_attr_ir::CanonicalSymbol; ๐Ÿ”’
use rustc_hir::def_id::LocalDefId; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::FnSig; ๐Ÿ”’
use rustc_hir::ForeignItemKind; ๐Ÿ”’
use rustc_infer::infer::DefineOpaqueTypes; ๐Ÿ”’
use rustc_lint_defs::declare_lint; ๐Ÿ”’
use rustc_lint_defs::declare_lint_pass; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::Instance; ๐Ÿ”’
use rustc_middle::ty::PolyFnSig; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_trait_selection::infer::TyCtxtInferExt; ๐Ÿ”’
use crate::diagnostics::RedefiningRuntimeSymbolsDiag; ๐Ÿ”’
use crate::LateContext; ๐Ÿ”’
use crate::LateLintPass; ๐Ÿ”’
use crate::LintContext; ๐Ÿ”’

Structsยง

RuntimeSymbols

Staticsยง

INVALID_RUNTIME_SYMBOL_DEFINITIONS
The invalid_runtime_symbol_definitions lint checks the signature of items whose symbol name is a runtime symbol expected by core or std differs significantly from the expected signature (like mismatch ABI, mismatch C variadics, mismatch argument count, missing return type, โ€ฆ).
SUSPICIOUS_RUNTIME_SYMBOL_DEFINITIONS
The suspicious_runtime_symbol_definitions lint checks the signature of items whose symbol name is a runtime symbol expected by core or std.

Functionsยง

check ๐Ÿ”’
check_fn ๐Ÿ”’
check_static ๐Ÿ”’