-
-
Notifications
You must be signed in to change notification settings - Fork 15k
-Zno-link is broken (take 2) #141706
Copy link
Copy link
Open
Labels
-Zno-linkUnstable option: -Zno-linkUnstable option: -Zno-linkA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
-Zno-linkUnstable option: -Zno-linkUnstable option: -Zno-linkA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: It compiles, but doesn't link anything.
Instead, this happened:
Meta
Reported by @weihanglo at https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/How.20to.20use.20.60-Zno-link.60.2F.60-Zlink-only.60.20correctly/with/520969639
Previous breakage: #77857
rustc --version --verbose: