1
Fork 0

Allow lint passes to be bound by TyCtxt

This commit is contained in:
Jason Newcomb 2022-09-06 14:23:03 -04:00
parent a594044533
commit 0126f7f3a9
10 changed files with 274 additions and 246 deletions

View file

@ -244,4 +244,4 @@ macro_rules! declare_combined_early_lint_pass {
/// A lint pass boxed up as a trait object.
pub type EarlyLintPassObject = Box<dyn EarlyLintPass + sync::Send + 'static>;
pub type LateLintPassObject = Box<dyn for<'tcx> LateLintPass<'tcx> + sync::Send + 'static>;
pub type LateLintPassObject<'tcx> = Box<dyn LateLintPass<'tcx> + sync::Send + 'tcx>;