Skip to content

Quote visibility in diagnostics - #12669

Open
0x6e wants to merge 9 commits into
masterfrom
nathan/visibility-diagnostic-quotes
Open

Quote visibility in diagnostics#12669
0x6e wants to merge 9 commits into
masterfrom
nathan/visibility-diagnostic-quotes

Conversation

@0x6e

@0x6e 0x6e commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Relates to #12592 where the display implementation for Input, Output, InOut visibilities was updated to use the expected syntax: in, out, in-out.

Now we quote the visibility in diagnostics to highlight the syntax.

@0x6e
0x6e requested review from LeonMatthes and ogoffart July 28, 2026 10:15
0x6e added 9 commits July 28, 2026 13:01
Now that we use the actual syntax here, lets quote it to make it clear
it is syntax.
Emphasise the syntax that might be causing the problem.
Match the style of the other diagnostics printing visibility. Use the
Display implementation of PropertyVisbility::Output so that the error
text is kept up-to-date in the future.
Highlight the syntax now that input/output have been changed to
`in`/`out`.
Highlight the syntax, and use "an" here as it sounds more natural.
…rnings

Quote the visibility to match the style of other diagnostics.
Match the style of the other visibility diagnostics. Use the Display
implementation for PropertyVisibility so that the diagnostics are
consistent.
…ion warnings

Match the style of the other visibility diagnostics.
Match the style of other visibility diagnostic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant