]> git.lizzy.rs Git - rust.git/commit
Limit symbols exported from proc macros
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sat, 30 Jul 2022 12:16:33 +0000 (12:16 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sat, 30 Jul 2022 12:16:33 +0000 (12:16 +0000)
commit6098e795a20f03654ab967a3705a495454abb05b
tree51e4551e46d31600c559ccb2b46a5300999032c5
parent760d8a2cb169974971cb54302c857bfed0070f6e
Limit symbols exported from proc macros

Only __rustc_proc_macro_decls_*__ and rust_metadata_* need to be
exported for proc macros to work. All other symbols only increase binary
size and have the potential to conflict with symbols from the host
compiler.
compiler/rustc_codegen_ssa/src/back/linker.rs
compiler/rustc_codegen_ssa/src/back/symbol_export.rs
src/test/run-make-fulldeps/symbol-visibility/Makefile
src/test/run-make-fulldeps/symbol-visibility/a_proc_macro.rs [new file with mode: 0644]