willcrichton / flowistry

Flowistry is an IDE plugin for Rust that helps you focus on relevant code.
https://marketplace.visualstudio.com/items?itemName=wcrichton.flowistry
MIT License
1.91k stars 45 forks source link

Determine call type based on `LanguageItems` #91

Open JustusAdam opened 9 months ago

JustusAdam commented 9 months ago

This changes the way that std::ops::Fn::call and std::future::Future::poll is detected in pdg construction to use the LangaugeItems struct which I think is the way it's supposed to be done.

In addition it will also now detect FnMut:call_mut and FnOnce::call_once now.

I haven't added test cases for the last two. Are there test cases for Fn::call that I could model off of?

JustusAdam commented 9 months ago

I don't understand why this CI fails btw. This doesn't seem to have anything to do with my changes