We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Item
1 parent b2d021a commit 8a462ffCopy full SHA for 8a462ff
src/librustc_mir/transform/check_consts/mod.rs
@@ -20,11 +20,11 @@ pub mod validation;
20
/// Information about the item currently being const-checked, as well as a reference to the global
21
/// context.
22
pub struct Item<'mir, 'tcx> {
23
- body: &'mir mir::Body<'tcx>,
24
- tcx: TyCtxt<'tcx>,
25
- def_id: DefId,
26
- param_env: ty::ParamEnv<'tcx>,
27
- const_kind: Option<ConstKind>,
+ pub body: &'mir mir::Body<'tcx>,
+ pub tcx: TyCtxt<'tcx>,
+ pub def_id: DefId,
+ pub param_env: ty::ParamEnv<'tcx>,
+ pub const_kind: Option<ConstKind>,
28
}
29
30
impl Item<'mir, 'tcx> {
0 commit comments