Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Format MIRAI diagnostic message #1273

Open
seanrion opened this issue Aug 9, 2024 · 0 comments
Open

Format MIRAI diagnostic message #1273

seanrion opened this issue Aug 9, 2024 · 0 comments

Comments

@seanrion
Copy link

seanrion commented Aug 9, 2024

Issue

I would like to suggest an enhancement to the diagnostic messages generated by MIRAI. Currently, MIRAI's diagnostic messages are formatted similarly to Rust's native diagnostic messages, which can make it challenging to differentiate between the two when reviewing output.

Expected Behavior

For example, a current MIRAI warning might look like this:

warning: possible attempt to add with overflow

To make it easier to identify messages originating from MIRAI, I propose adjusting the format to include a prefix like [MIRAI], resulting in:

warning: [MIRAI] possible attempt to add with overflow

This small change would greatly improve clarity and ease of use when analyzing diagnostic output, especially in mixed environments where both Rust and MIRAI diagnostics are present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant