diff options
| author | bors <bors@rust-lang.org> | 2024-08-17 19:35:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-17 19:35:01 +0000 |
| commit | feeba198f2c5455b31ca898c859385d5161f0bd8 (patch) | |
| tree | 10a205ba2c270fd446afc65cea49b9b0795b8139 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 0f26ee4fd95a1c046582dfb18892f520788e2c2c (diff) | |
| parent | 84633f47f671f6c084d83070c6dc97d812de1758 (diff) | |
| download | rust-feeba198f2c5455b31ca898c859385d5161f0bd8.tar.gz rust-feeba198f2c5455b31ca898c859385d5161f0bd8.zip | |
Auto merge of #128792 - compiler-errors:foreign-sig, r=spastorino
Use `FnSig` instead of raw `FnDecl` for `ForeignItemKind::Fn`, fix ICE for `Fn` trait error on safe foreign fn Let's use `hir::FnSig` instead of `hir::FnDecl + hir::Safety` for `ForeignItemKind::Fn`. This consolidates some handling code between normal fns and foreign fns. Separetly, fix an ICE where we weren't handling `Fn` trait errors for safe foreign fns. If perf is bad for the first commit, I can rework the ICE fix to not rely on it. But if perf is good, I prefer we fix and clean up things all at once 👍 r? spastorino Fixes #128764
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
