Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slicec/src/diagnostics/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ implement_diagnostic_functions!(
(
"E047",
InfiniteSizeCycle,
format!("self-referential type {type_id} has infinite size: {cycle}"),
format!("disallowed type cycle; type {type_id} references itself: {cycle}"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer a clearer error message, for example:

type {type_id} cannot reference itself: {cycle}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about: type {type_id} illegally references itself: {cycle}?

type_id, cycle
),
(
Expand Down
Loading