rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
13.62k stars 1.49k forks source link

Sync from rustc #17152

Closed RalfJung closed 3 weeks ago

RalfJung commented 3 weeks ago

Not meant to be merged, just to demo what the history looks like. Cc @lnicola

This still leads to some duplicate commits, such as Set sysroot-abi flag for proc-macro-cli when in-rust-tree is set. However, these are already duplicated in the rustc repo, so I don't think there is a way to avoid syncing that duplication over to RA. The bug happened when the duplicate was merged into rustc. (Specifically, that was https://github.com/rust-lang/rust/pull/119988. The original version of the commit landed in https://github.com/rust-lang/rust/pull/118861. Something about either the sync-to-ra of the original commit or the sync-to-rustc of the sync-to-ra doesn't seem to have been entirely clean.)