]> git.lizzy.rs Git - rust.git/commit
Assert that sysroot ABI version matches exactly
authorAmos Wenger <amoswenger@gmail.com>
Thu, 21 Jul 2022 11:13:24 +0000 (13:13 +0200)
committerAmos Wenger <amoswenger@gmail.com>
Thu, 21 Jul 2022 11:13:25 +0000 (13:13 +0200)
commitfdddd832240efc0f1966c90aab75ad24a5d12fac
tree3bc23bd76d881d1b0ac2327fc5301a7fee0627c0
parent480f55533473e1438774ccaac677b10f8a1bd211
Assert that sysroot ABI version matches exactly

Otherwise, fall back to the multi ABI scheme, except in testing, where
it becomes a hard error.

This should make it possible to use a rustup-provided rust-analyzer with
proc macro dylibs compiled by older rustcs, and it'll also catch changes
to the format of `rustc --version` or the `.rustc` section that would
make them impossible to compare for equality.
crates/proc-macro-api/src/lib.rs
crates/proc-macro-api/src/version.rs
crates/proc-macro-srv/build.rs [new file with mode: 0644]
crates/proc-macro-srv/src/abis/mod.rs
crates/proc-macro-srv/src/dylib.rs