Skip to content

Commit 8ee0518

Browse files
authored
Unrolled build for rust-lang#126362
Rollup merge of rust-lang#126362 - artemagvanian:patch-1, r=celinval Make `try_from_target_usize` method public There is now no way to create a TyConst from an integer, so I propose making this method public unless there was a reason for keeping it otherwise.
2 parents f6b4b71 + 46391b7 commit 8ee0518

File tree

1 file changed

+1
-1
lines changed
  • compiler/stable_mir/src

1 file changed

+1
-1
lines changed

compiler/stable_mir/src/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl TyConst {
122122
}
123123

124124
/// Creates an interned usize constant.
125-
fn try_from_target_usize(val: u64) -> Result<Self, Error> {
125+
pub fn try_from_target_usize(val: u64) -> Result<Self, Error> {
126126
with(|cx| cx.try_new_ty_const_uint(val.into(), UintTy::Usize))
127127
}
128128

0 commit comments

Comments
 (0)