rustc_span::source_map::SourceMap::lookup_source_file gives false local path
I’m studying the code of rupta, a pointer analysis framework for rust. I tried to add some codes to rupta, in order to learn where certain function is defined, given the DefId
of that function, as follows:
How do I invoke a “rustc” system command?
How can we call the rustc command from within a Rust program?