about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-19 12:26:43 +0530
committerGitHub <noreply@github.com>2022-08-19 12:26:43 +0530
commitd83abe8c123e4a59edafffe9825ce3f398d31aa6 (patch)
tree97dd0606e5b1c8a9b2ffcd9e6353f5068d8d99fc /compiler/rustc_mir_transform/src/coverage/query.rs
parent3cebcbaaeb7defb2627af13dd7853e4eca6c3527 (diff)
parent86645c9cf7e7a73e01c006c8bc39c431cae0e8df (diff)
downloadrust-d83abe8c123e4a59edafffe9825ce3f398d31aa6.tar.gz
rust-d83abe8c123e4a59edafffe9825ce3f398d31aa6.zip
Rollup merge of #100522 - cjgillot:inline-polymorphic-recursion, r=tmiasko
Only check the `DefId` for the recursion check in MIR inliner.

The current history check compares `Instance`s, so it cannot detect cases of polymorphic recursion where `Substs` change.
This PR makes it so we only compare `DefId`s, ignoring any change in `Substs`.

According to https://github.com/rust-lang/rust/pull/100522#issuecomment-1214769757, in practice only very few inlining decisions change.

Fixes https://github.com/rust-lang/rust/issues/100476
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions