You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start using serde_derive in a couple places in the compiler.
Note that this doesn't actually use `serde` for anything currently - I have a different branch where I started that, but I thought I'd extract this proof of concept out, to deal with build system issues.
The second commit is needed to fix this error in `rustc_codegen_llvm` and `rustdoc`:
```
error[E0463]: can't find crate for `serde_derive` which `rustc` depends on
```
This problem arises because we use different Cargo build dirs for codegen backends and `rustdoc` from the main `rustc` Cargo build dir, and without the second commit in this PR, the host `deps` (including `serde_derive`) weren't copied over to the common sysroot (shared between all builds).
*Quite surprisingly*, everything else seems to "just work"!
This is in part because of pre-existing logic in `rustbuild` to only use `stage0` for build scripts when building libstd itself, which *happens to* be what we need to make proc macros work in all stages 🎉
cc @alexcrichton@Mark-Simulacrum@Zoxc@nikomatsakis
0 commit comments