Skip to content

fix(interface): honor no_warnings in DiagCtxtFlags::update_from_opts#744

Open
cuiweixie wants to merge 1 commit intoparadigmxyz:mainfrom
cuiweixie:fix/diag-ctxt-no-warnings
Open

fix(interface): honor no_warnings in DiagCtxtFlags::update_from_opts#744
cuiweixie wants to merge 1 commit intoparadigmxyz:mainfrom
cuiweixie:fix/diag-ctxt-no-warnings

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

DiagCtxtFlags::update_from_opts used |= !opts.no_warnings, which never cleared can_emit_warnings when it was already true (the default). Replace with &= !opts.no_warnings so no_warnings actually suppresses warnings.

Notes

Small logic fix in diagnostic flags; aligns behavior with Opts::no_warnings.

Use bitwise AND so disabling warnings clears can_emit_warnings. The
previous OR-assignment left the flag true whenever it started true.
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