A default constructor has an empty body and no initializers, which = default says more plainly

tx0/cpp:empty-default-constructorallnotestyle/conventionsdepth faststyle

What it finds

Widget() {} does what the compiler's default constructor would, except that the class is no longer trivially default-constructible. = default says so. The fix is offered as unsafe: with = default, value-initialization, as in Widget w{};, zeroes members that the empty constructor left uninitialized.

From the rule's source, empty_default_constructor.rs.

Turn it on, off or suppress it

The rule runs from the all tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/cpp:empty-default-constructor" = "note"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/cpp:empty-default-constructor] reason="..."

tx0 explain tx0/cpp:empty-default-constructor shows the same in the terminal. Found a false positive? Report it.