compiler_interface
imports: 导入需要的包,例如rustc_driver,rustc_interface,rustc_lint等。
Type aliasing: 定义了几种新的类型别名,使代码更易读。例如,EarlyPass和LatePass,它们分别代表在编译过程的早期和晚期运行的lints。
DiagnosticsWriter struct: 这个结构体实现了std::io::Write trait,用于收集Rust编译器的错误输出。
DriverCallbacks struct: 这个结构体包含...
retriever.hashnode.dev2 min read