Don't typeck during WF, instead check outside of WF in check_crate

This commit is contained in:
Michael Goulet 2025-02-21 19:22:08 +00:00
parent 9d3d5a7fbb
commit 0baee2432a
13 changed files with 90 additions and 66 deletions

View file

@ -145,7 +145,7 @@ pub fn forbid_intrinsic_abi(tcx: TyCtxt<'_>, sp: Span, abi: ExternAbi) {
}
}
fn maybe_check_static_with_link_section(tcx: TyCtxt<'_>, id: LocalDefId) {
pub(super) fn maybe_check_static_with_link_section(tcx: TyCtxt<'_>, id: LocalDefId) {
// Only restricted on wasm target for now
if !tcx.sess.target.is_like_wasm {
return;