diff --git a/source/rust_verify/src/driver.rs b/source/rust_verify/src/driver.rs index c46ca3a12..7cd82ccfc 100644 --- a/source/rust_verify/src/driver.rs +++ b/source/rust_verify/src/driver.rs @@ -90,7 +90,7 @@ pub struct CompilerCallbacksEraseMacro { } impl rustc_driver::Callbacks for CompilerCallbacksEraseMacro { - fn after_crate_root_parsing<'tcx>( + fn after_expansion<'tcx>( &mut self, _compiler: &rustc_interface::interface::Compiler, queries: &'tcx rustc_interface::Queries<'tcx>, diff --git a/source/rust_verify/src/lifetime.rs b/source/rust_verify/src/lifetime.rs index f7cb19e92..49840a9c6 100644 --- a/source/rust_verify/src/lifetime.rs +++ b/source/rust_verify/src/lifetime.rs @@ -304,7 +304,7 @@ fn emit_check_tracked_lifetimes<'tcx>( struct LifetimeCallbacks {} impl rustc_driver::Callbacks for LifetimeCallbacks { - fn after_crate_root_parsing<'tcx>( + fn after_expansion<'tcx>( &mut self, _compiler: &rustc_interface::interface::Compiler, queries: &'tcx rustc_interface::Queries<'tcx>,