You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[distributed_slice]pubstaticSLICE:[&'static str];#[distributed_slice(SLICE)]staticELEMENT1:&&str = &"uhoh";#[distributed_slice(SLICE)]staticELEMENT2:&&str = &"ohno";fnmain(){eprintln!("{:?}",SLICE[0].as_bytes().as_ptr_range());// Possible output: 0x7ff75a903c88..0xffeeb5207928// That's 140 TB of memory just available to read}
Culprit: DistributedSlice::private_typecheck(self, T) accepts an argument of type &&str and coerces it to &str.
The text was updated successfully, but these errors were encountered:
Reproduction:
Culprit:
DistributedSlice::private_typecheck(self, T)
accepts an argument of type&&str
and coerces it to&str
.The text was updated successfully, but these errors were encountered: