Skip to main content

Module builder

Module builder 

Source
Expand description

Assemble a safety tag into a Property via the declarative spec table.

Property::new looks up spec::SPECS, dispatches on the tag’s PropertyKind, and resolves arguments positionally. Property::parse_list is the shared entry point for all front-ends, including the any(...) combinator.

Re-exportsΒ§

use rustc_hir::def_id::DefId; πŸ”’
use rustc_middle::ty::TyCtxt; πŸ”’
use syn::Expr; πŸ”’
use crate::util::name::access_ident_recursive; πŸ”’
use super::spec; πŸ”’
use super::*; πŸ”’