Calculate drop glue and show it on hover

Also fix the `needs_drop()` intrinsic.

Unions also need this information (to err if they have a drop-needing field), but this will come in a follow-up PR.
This commit is contained in:
Chayim Refael Friedman 2025-01-20 19:48:55 +02:00
parent 2b485d7f23
commit 100e166bb1
13 changed files with 1002 additions and 6 deletions

View file

@ -1641,6 +1641,16 @@
}
}
},
{
"title": "hover",
"properties": {
"rust-analyzer.hover.dropGlue.enable": {
"markdownDescription": "Whether to show drop glue information on hover.",
"default": true,
"type": "boolean"
}
}
},
{
"title": "hover",
"properties": {