mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
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:
parent
2b485d7f23
commit
100e166bb1
13 changed files with 1002 additions and 6 deletions
|
|
@ -24,6 +24,7 @@ extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
|
|||
mod builder;
|
||||
mod chalk_db;
|
||||
mod chalk_ext;
|
||||
mod drop;
|
||||
mod infer;
|
||||
mod inhabitedness;
|
||||
mod interner;
|
||||
|
|
@ -81,6 +82,7 @@ use crate::{
|
|||
pub use autoderef::autoderef;
|
||||
pub use builder::{ParamKind, TyBuilder};
|
||||
pub use chalk_ext::*;
|
||||
pub use drop::DropGlue;
|
||||
pub use infer::{
|
||||
cast::CastError,
|
||||
closure::{CaptureKind, CapturedItem},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue