languages: Fix rust completions not having proper detail labels (#35772)

rust-analyzer changed the format here a bit some months ago which
partially broke our nice detailed highlighted completion labels. The
brings that back while also cleaning up the code a bit.

Also fixes a bug where disabling rust-analyzers snippet callable
completions would fully break them.

Release Notes:

- N/A
f5f837d39aLukas Wirth committed on 8/7/2025, 10:38:58 AM· committed by GitHubparent5b1b3c5
1 file changedLine totals unavailable