mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-08 12:02:46 +00:00
linker: Refactor library linking methods in `trait Linker` Linkers are not aware of Rust libraries, they look like regular static or dynamic libraries to them, so Rust-specific methods in `trait Linker` do not make much sense. They can be either removed or renamed to something more suitable. Commits after the second one are cleanups.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.