Skip to content

Commit 8a462ff

Browse files
Make Item fields pub
1 parent b2d021a commit 8a462ff

File tree

1 file changed

+5
-5
lines changed
  • src/librustc_mir/transform/check_consts

1 file changed

+5
-5
lines changed

src/librustc_mir/transform/check_consts/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ pub mod validation;
2020
/// Information about the item currently being const-checked, as well as a reference to the global
2121
/// context.
2222
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>,
23+
pub body: &'mir mir::Body<'tcx>,
24+
pub tcx: TyCtxt<'tcx>,
25+
pub def_id: DefId,
26+
pub param_env: ty::ParamEnv<'tcx>,
27+
pub const_kind: Option<ConstKind>,
2828
}
2929

3030
impl Item<'mir, 'tcx> {

0 commit comments

Comments
 (0)