Skip to content

Figure out why x.py test --stage 0 rust-analyzer doesn't work #99610

Open
@fasterthanlime

Description

@fasterthanlime

(This issue only makes sense after #99603 lands)

@jyn514 is convinced it should if the proper sysroot is used to compile both the proc-macro-srv and proc-macro-test-impl crates.

There's one nested invocation of rustc in proc-macro-srv's build script, but it uses $RUSTC (all it does is grab the trimmed output of rustc -v).

There's one nested invocation of cargo in proc-macro-test's build script (to build proc-macro-test-impl in a temp dir), but it uses $CARGO.

Here's the output of ./x.py test --stage 0 -vv rust-analyzer --test-args like_macro_clone_literals: https://gist.github.com/fasterthanlime/3de46b62906d0762c8c3ac0e295892a4

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustP-lowLow priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions