We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
try_from_target_usize
1 parent 8337ba9 commit 46391b7Copy full SHA for 46391b7
compiler/stable_mir/src/ty.rs
@@ -122,7 +122,7 @@ impl TyConst {
122
}
123
124
/// Creates an interned usize constant.
125
- fn try_from_target_usize(val: u64) -> Result<Self, Error> {
+ pub fn try_from_target_usize(val: u64) -> Result<Self, Error> {
126
with(|cx| cx.try_new_ty_const_uint(val.into(), UintTy::Usize))
127
128
0 commit comments