-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Emit warning when search path not found in -L
#143687
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
Conversation
Signed-off-by: xizheyin <[email protected]>
Signed-off-by: xizheyin <[email protected]>
Signed-off-by: xizheyin <[email protected]>
|
Oh, not on the review rotation. |
@@ -124,14 +124,19 @@ impl SearchPath { | |||
early_dcx.early_fatal("empty search path given via `-L`"); | |||
} | |||
|
|||
if !dir.exists() { | |||
#[allow(rustc::untranslatable_diagnostic)] // FIXME: make this translatable | |||
early_dcx.early_warn(format!("search path `{}` does not exist", dir.display())); |
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.
I think we‘d better to explicitly inform users that this search path comes from the -L
option.
I feel like this is might be quite annoying, probably moreso than Discussion thread: #t-compiler > Warn on `-Lnonexistent_path`? |
I think this is blocked on the topics about wether to add a warning which may affect many users |
Yes, we have no better way to solve this problem for the time being. This can't be controlled as conservatively as #143719. Should I close this PR? |
Yea you can close it |
cc #142812
r? @wesleywiser