-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude unnecessary info from CodegenResults #80187
Conversation
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
@bjorn3 Could you take a look? |
Can you please add a test for |
Good idea, let me look into it. |
r? @bjorn3 i think |
|
||
impl From<&cstore::NativeLib> for NativeLib { | ||
fn from(lib: &cstore::NativeLib) -> Self { | ||
NativeLib { kind: lib.kind.clone(), name: lib.name.clone(), cfg: lib.cfg.clone() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must we do a clone here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cstore::NativeLib
originates from an Lrc
, so we can't move any of these fields.
`foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults.
Added a sanity test covering |
Thanks! @bors r+ |
📌 Commit e8a564e has been approved by |
Exclude unnecessary info from CodegenResults `foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults. Fixes rust-lang#77857
Exclude unnecessary info from CodegenResults `foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults. Fixes rust-lang#77857
Exclude unnecessary info from CodegenResults `foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults. Fixes rust-lang#77857
Exclude unnecessary info from CodegenResults `foreign_module` and `wasm_import_module` are not needed for linking, and hence can be removed from CodegenResults. Fixes rust-lang#77857
☀️ Test successful - checks-actions |
foreign_module
andwasm_import_module
are not needed for linking, and hence can be removed from CodegenResults.Fixes #77857