mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-26 07:09:41 +00:00
Sometimes, a backend may need to emit warnings, errors, or otherwise need to know the span of the current item in a basic block. So, add a set_span method to give the backend that information.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.