mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
292c538265
Remove some imports to the rustc crate
- When we have `NestedVisitorMap::None`, we use `type Map = dyn intravisit::Map<'v>;` instead of the actual map. This doesn't actually result in dynamic dispatch (in the future we may want to use an associated type default to simplify the code).
- Use `rustc_session::` imports instead of `rustc::{session, lint}`.
r? @Zoxc
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.