Make empty port structs also valid port structs

Fixes #356 (closed)

This pulls the is_port bool from ast further down to hir. The old code went through all fields and checked if any of them is a port type.

Author checklist

  • New Diagnostics have at least one snapshot test that triggers it
  • Added a changelog entry, if relevant
    • You can use ./add_changelog <MR number or a_descriptive_name> to do this

Merge request reports

Loading
Loading