[−][src]Function c2rust_refactor::driver::build_session_from_args
pub fn build_session_from_args(
args: &[String],
file_loader: Option<Box<dyn FileLoader + Sync + Send>>
) -> Session
Run the compiler with some command line args
. Stops compiling and invokes the callback
func
after the indicated phase
.
file_loader
can be None
to read source code from the file system. Otherwise, the provided
loader will be used within the compiler. For example, editor integration uses a custom file
loader to provide the compiler with buffer contents for currently open files.