-
Notifications
You must be signed in to change notification settings - Fork 13.3k
librustc: Remove outdated reference to ~
syntax
#15071
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
The error message now looks like:
Is it better to use |
You should use |
Should |
@schmee @steveklabnik updated with your feedback, thanks! |
@@ -1121,7 +1121,10 @@ impl<'t,TYPER:Typer> MemCategorizationContext<'t,TYPER> { | |||
"captured outer variable".to_string() | |||
} | |||
_ => { | |||
format!("dereference of `{}`-pointer", ptr_sigil(pk)) | |||
match pk { | |||
OwnedPtr => format!("dereference of `{}`", ptr_sigil(pk)), |
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.
Should this match
also single out a GcPtr
? Also, can you add tests for both these cases?
Pushed again with tests + a new message for |
internal: remove spurious regex dependency - replace tokio's env-filter with a smaller&simpler targets filter - reshuffle logging infra a bit to make sure there's only a single place where we read environmental variables - use anyhow::Result in rust-analyzer binary
Fix #15052