about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-03-19 15:33:55 +0530
committerGitHub <noreply@github.com>2023-03-19 15:33:55 +0530
commite9c25b4ad5a78e7a125efec5bc050abe1eff293e (patch)
tree855c7fe74f2fa461ac372a448f4e7ee4c0e90ed1 /compiler/rustc_plugin_impl/src
parent993b775849bdc75eac5cd3b7d459bcbaa9514ed8 (diff)
parent97915ab943001b5a74df4b3e22e7c0a469433fb9 (diff)
downloadrust-e9c25b4ad5a78e7a125efec5bc050abe1eff293e.tar.gz
rust-e9c25b4ad5a78e7a125efec5bc050abe1eff293e.zip
Rollup merge of #105793 - lukas-code:circular-deps, r=Mark-Simulacrum
Add note for mismatched types because of circular dependencies

If you have crate A with a dependency on crate B, and crate B with a dev-dependency on A, then you might see "mismatched types" errors on types that seem to be equal. This PR adds a note that explains that the types are different, because crate B is compiled twice, one time with `cfg(test)` and one time without.

I haven't found a good way to create circular dependencies in UI tests, so I abused the incremental tests instead. As a bonus, incremental tests support "cpass" now.

related to https://github.com/rust-lang/rust/issues/22750
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions