Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide proper error message when trying access an unknown unit field. #1889

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Oct 15, 2024

Returning type::Unknown instead of type::Auto will let the
resolver process stop, allowing an already existing error message to
kick in later. We were doing it this way already for structs, but not
for units.

This also includes a fix for a bug with finding bitfield ranges by ID,
which was triggered by the change.

Closes #1790.

Returning `type::Unknown` instead of `type::Auto` will let the
resolver process stop, allowing an already existing error message to
kick in later. We were doing it this way already for structs, but not
for units.

This also includes a fix for a bug with finding bitfield ranges by ID,
which was triggered by the change.

Closes #1790.
@rsmmr rsmmr requested a review from bbannier October 16, 2024 08:34
bbannier
bbannier previously approved these changes Oct 16, 2024
This suppresses some non-interesting follow-up errors.

Closes #1792.
@rsmmr
Copy link
Member Author

rsmmr commented Oct 16, 2024

I've added one more commit to this PR that closes #1792.

@rsmmr rsmmr merged commit 0e3bc48 into main Oct 17, 2024
20 checks passed
@rsmmr rsmmr deleted the topic/robin/gh-1790-unknown-field branch October 17, 2024 08:35
rsmmr added a commit that referenced this pull request Oct 17, 2024
* origin/topic/robin/gh-1889-convert-params:
  Fix usage of `&convert` with unit's requiring parameters.
  Factor out logic to validate arguments given to a type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants