Wish: attributes to disable warnings #15893
Labels
kind: user messages
Improvement of error messages, new warnings, etc.
kind: wish
Feature or enhancement requests.
part: attributes
#[attributes] modify the behaviour of vernac sentences.
Milestone
Sometimes the desired way to deal with a warning is to locally disable it. This is particularly obvious for the several warnings generated by importing MathComp, but it is also true in other circumstances, such as overriding notations, declaring nonuniform coercions that don't have a uniform version, declaring a coercion that leads to ambiguous paths we don't care about, etc.
There is already a way to deal with this, which is to disable and enable the warnings surrounding the problematic lines:
However, it would be nicer if there were attributes for disabling each warning (or a sensible subset of the warnings), such as the
nonuniform
one implemented recently in #15853.The text was updated successfully, but these errors were encountered: