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
The rust compiler currently implements something similar to this project, so in the name of reducing duplication, it would be good to find out and document what it does and where we can augment it with our own analysis.
The text was updated successfully, but these errors were encountered:
You should look at the save-analysis crate you can implement data dumpers to dump data in any format you like (currently we format JSON and CSV) and I'm very open to dumping more data if there is some missing. I would strongly recommend you use that. We intend to support the API long term (it will be used to power IDEs, etc.) and will be relatively stable. We can also customise to your needs. Any approach that uses the compiler internals or crate metadata is likely to break very often.
For the intended purposes of metacollect, MIR seems way more relevant than save-analysis.
Since rust-lang/rust#37400, all you need to do is tcx.item_mir(def_id) to get it, even from a lint.
NB: cross-crate MIR exists only for constants, const fn or #[inline]/generic functions.
The rust compiler currently implements something similar to this project, so in the name of reducing duplication, it would be good to find out and document what it does and where we can augment it with our own analysis.
The text was updated successfully, but these errors were encountered: