Module rustc::hir::check_attr[][src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

This module implements some validity checks for attributes. In particular it verifies that #[inline] and #[repr] attributes are attached to items that actually support them and if there are conflicts between multiple such attributes attached to the same item.

Re-exports

use syntax_pos::Span;
use ty::TyCtxt;
use hir;
use hir::intravisit;
use hir::intravisit::Visitor;
use hir::intravisit::NestedVisitorMap;

Structs

CheckAttrVisitor [
Experimental
]

Enums

Target [
Experimental
]

Functions

check_crate [
Experimental
]
is_c_like_enum [
Experimental
]