diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-12 16:04:52 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-19 09:19:58 +0000 |
| commit | a8f71cf2893e03ec0ef7663f680f5d816e80f801 (patch) | |
| tree | e573396ae6dd42b65ac1c6d0018e01276bd13432 /compiler/rustc_monomorphize | |
| parent | e91084180e2171fd229241adfb4b1463ebb79958 (diff) | |
| download | rust-a8f71cf2893e03ec0ef7663f680f5d816e80f801.tar.gz rust-a8f71cf2893e03ec0ef7663f680f5d816e80f801.zip | |
Remove all checks of `IntrinsicDef::must_be_overridden` except for the actual overrides in codegen
Diffstat (limited to 'compiler/rustc_monomorphize')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index d8bdbd8c442..abe691ba0d8 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -1030,11 +1030,6 @@ fn should_codegen_locally<'tcx>(tcx: TyCtxt<'tcx>, instance: &Instance<'tcx>) -> return false; } - if tcx.intrinsic(def_id).is_some_and(|i| i.must_be_overridden) { - // These are implemented by backends directly and have no meaningful body. - return false; - } - if def_id.is_local() { // Local items cannot be referred to locally without monomorphizing them locally. return true; |
