Remove all checks of IntrinsicDef::must_be_overridden
except for the actual overrides in codegen
This commit is contained in:
parent
e91084180e
commit
a8f71cf289
7 changed files with 11 additions and 32 deletions
|
@ -23,10 +23,6 @@ fn cross_crate_inlinable(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
|||
return false;
|
||||
}
|
||||
|
||||
if tcx.intrinsic(def_id).is_some_and(|i| i.must_be_overridden) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// This just reproduces the logic from Instance::requires_inline.
|
||||
match tcx.def_kind(def_id) {
|
||||
DefKind::Ctor(..) | DefKind::Closure => return true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue