mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
d83abe8c12
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 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |