Rollup merge of #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.
This commit is contained in:
commit
3b109987e1
@ -122,7 +122,7 @@ impl TyConst {
|
||||
}
|
||||
|
||||
/// Creates an interned usize constant.
|
||||
fn try_from_target_usize(val: u64) -> Result<Self, Error> {
|
||||
pub fn try_from_target_usize(val: u64) -> Result<Self, Error> {
|
||||
with(|cx| cx.try_new_ty_const_uint(val.into(), UintTy::Usize))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user