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
error: mismatched types: expected `image_cache_task::AfterPrefetch` but found `&image_cache_task::AfterPrefetch` (expected enum image_cache_task::AfterPrefetch but found &-ptr)
#[deriving(Clone)]
^~~~~
The solution is just to derive Clone on AfterPrefetch as well. But the error message is not helpful.
The text was updated successfully, but these errors were encountered:
…ked-in-const, r=flip1995
Suggest from_utf8_unchecked in const contexts
Unfortunately I couldn't figure out how to check whether a given expression is in an `unsafe` context or not, so I just unconditionally emit the wrapping `unsafe {}` block in the suggestion. If there is an easy way to get it to work better then I would love to hear it.
changelog: Suggest `from_utf8_unchecked` instead of `from_utf8` in const contexts for ``[`transmute_bytes_to_str`]``
refs: rust-lang#8379
Compiling
produces
The solution is just to derive
Clone
onAfterPrefetch
as well. But the error message is not helpful.The text was updated successfully, but these errors were encountered: