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
It would still be great to have our own, awesome allocator. I'd suggest building jemalloc in the mode where it doesn't attempt to replace the malloc and free functions but instead provides them under their own name, and modify std to use jemalloc directly.
The text was updated successfully, but these errors were encountered:
Won't using different symbol names interfere with LLVM's libcall optimisations? (Of course, the net benefit of using jemalloc might still be positive.)
[`redundant_guards`]: catch `is_empty`, `starts_with` and `ends_with` on slices and `str`s
Fixesrust-lang#11807
Few things worth mentioning:
- Taking `snippet`s is now done at callsite, instead of passing a span and doing it in `emit_redundant_guards`. This is because we now need custom suggestion strings in certain places, like `""` for `str::is_empty`.
- This now uses `snippet` instead of `snippet_with_applicability`. I don't think this really makes any difference for `MaybeIncorrect`, though?
- This could also lint byte strings, as they're of type `&[u8; N]`, but that can be ugly so I decided to leave it out for now
changelog: [`redundant_guards`]: catch `str::is_empty`, `slice::is_empty`, `slice::starts_with` and `slice::ends_with`
It would still be great to have our own, awesome allocator. I'd suggest building jemalloc in the mode where it doesn't attempt to replace the
malloc
andfree
functions but instead provides them under their own name, and modify std to use jemalloc directly.The text was updated successfully, but these errors were encountered: