Function rustc_query_impl::make_query::unsafe_derive_on_repr_packed[][src]

pub fn unsafe_derive_on_repr_packed<'tcx>(
    tcx: QueryCtxt<'tcx>,
    key: unsafe_derive_on_repr_packed<'tcx>
) -> QueryStackFrame
Expand description

HACK: when evaluated, this reports an “unsafe derive on repr(packed)” error.

Unsafety checking is executed for each method separately, but we only want to emit this error once per derive. As there are some impls with multiple methods, we use a query for deduplication.