-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Reexport MetadataBlob so it can be used in rustc plugins #108435
Reexport MetadataBlob so it can be used in rustc plugins #108435
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
a167a37
to
32fea48
Compare
-1 on this.
@rustbot author |
Considering we are currently running an effort on reducing the size of meta data, it'll be used more than once. For the rest, considering I can't test anything at the time, you're very likely right, more things will need to be reexported.
Again, I need to have access to more of the code to be able to know what I need. But if you suggest more globally to just debug print everything, that sounds like a terrible approach to the whole problem.
Well, it's the same for all plugins, so nothing new here. Luckily we can pin a specific version so it reduces the problem by quite a lot. |
I suggest making something more developed than https://github.com/GuillaumeGomez/rmeta-reader/blob/master/src/main.rs with a rustc branch/fork. When the tool produces some useful output it will become more clear what parts of |
☔ The latest upstream changes (presumably #111671) made this pull request unmergeable. Please resolve the merge conflicts. |
@GuillaumeGomez |
Forgot about it. I'm planning to go back on it so closing. |
I was investigating on #81893. Currently, if a
pub use
of a foreign item has documentation, it's apparently not saved in thermeta
. However, I'm not completely sure of that so I wanted to look into thermeta
file to check if I missed anything, but I couldn't find armeta
reader, so I started writing my own (the work in progress of this fix can be seen here).You can see the very beginning of this rmeta reader here. Not working at the moment and I can't find out how to make
rust-toolchain
and itspath
argument work for rustc crates at the moment (if you have an idea?).Anyway, hopefully this will be helpful for other rustc contributors. At least it'll be for me. :)
cc @lqd