-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enable proc macros by default #7328
Comments
cc #6448 and @edwin0cheng |
#6822 maybe the first step |
Do we want to integrate it with |
I don't think so, they have different conditions for when they must be recomputed. |
One of the problems here is We have to make sure the progress bar will provide enough information about it. |
Hm, I think we just need to set the crate graph, rather than introducing a new input? We'll need to modify the graph for features anyway. I imagine we want to add |
Just want to clarify : If I understand correctly, In your approach, when I change a single |
Right! The same already happens to |
7412: Async loading for outdir and proc-macro r=maklad a=edwin0cheng cc #7328 ![Peek 2021-01-24 02-04](https://user-images.githubusercontent.com/11014119/105610083-8f208100-5de8-11eb-8e96-c2d4e349b352.gif) [Edit] ~~Finding a way to know when the workspace and build data are loaded...~~ [Edit 2] Not perfect solution, but seem to work now. Co-authored-by: Edwin Cheng <[email protected]>
Some crazy ideas: Can we use the debug information ot figure out the ABI in Another idea is, we could use rustc-nightly in CI and compare these structures side by side, but it will only detect what changed in nightly but not stable. |
The DWARF emitted by rustc is unstable. You need $ dwarfdump -i $(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-7a14b765860d45a7.rlib | grep DW_TAG_ | grep -v DW_TAG_inlined_subroutine | grep -v DW_TAG_subprogram | grep -v DW_TAG_namespace
< 0><0x0000000b> DW_TAG_compile_unit
Can't process archive member 1 lib.rmeta of ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-7a14b765860d45a7.rlib: unknown format |
Proc macros are opt-in, we should make them opt-out. Part of #7325 (comment)
Steps:
cargo check
andcargo metadata
together. Instead, we should first run only metadata, immediatelly start suggesting cod insight, and loadcargo check
info in backgrooud. This should also pave the way for reloading things when build.rs / proc macros change.The text was updated successfully, but these errors were encountered: