mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 02:53:43 +00:00
rustc_std_internal_symbol is meant to call functions from crates where there is no direct dependency on said crate. As they either have to be added to symbols.o or rustc has to introduce an implicit dependency on them to avoid linker errors. The latter is done for some things like the panic runtime, but adding these symbols to symbols.o allows removing those implicit dependencies.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.