Skip to content
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

How can rustc_plugin be used to analyze the code of rustc? #31

Open
cicilzx opened this issue Nov 28, 2024 · 1 comment
Open

How can rustc_plugin be used to analyze the code of rustc? #31

cicilzx opened this issue Nov 28, 2024 · 1 comment

Comments

@cicilzx
Copy link

cicilzx commented Nov 28, 2024

Hi, thank you for open-sourcing rustc_plugin, it has been very helpful for my research.

However, I want to analyze the source code of rustc or the std library, and in this case, I cannot use cargo build for compilation, so I can't directly use commands like cargo tool. Do you have any good suggestions? Thank you so much!

@willcrichton
Copy link
Contributor

rustc_plugin should be able to run on individual crates in the Rust compiler. I've used Flowistry to analyze rustc source code before. What specific issue are you running into?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants