-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Fix name() functions for local defs in rustc_public
#149401
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
base: main
Are you sure you want to change the base?
Conversation
The `name()` function specifies that it returns absolute path of items, however it wasn't including the crate name for local items. This change fixes that. This was reported here: rust-lang/project-stable-mir#109
This comment has been minimized.
This comment has been minimized.
|
It looks like I need to do some debugging. It's not clear to me why this change affected these tests. I.e., why:
It seems to only affect EDIT: |
|
You removed |
Thanks @oli-obk. So how should I use |
7792b9a to
ec1f5e3
Compare
|
Beautiful. @oli-obk it worked like a charm. I changed the pretty printer to use trimmed_name to make it less verbose. Thanks! |
|
Seems like this PR also fixes rust-lang/project-stable-mir#41? |
Good question. I haven't tried it yet |
This change fixes the behavior of the
name()function forCrateDefandInstancewhich should return absolute path of items. For local items, the crate name was missing.This resolves: rust-lang/project-stable-mir#109