A constructor that takes one argument is not explicit, so it converts implicitly
What it finds
A constructor callable with one argument converts that argument's type to the class wherever a conversion fits, as in a call f(42) for void f(Widget). Marking it explicit keeps the conversion to the places that ask for it. Copy and move constructors and constructors from std::initializer_list are left alone.
From the rule's source, implicit_converting_constructor.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/cpp:implicit-converting-constructor" = "warning"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:implicit-converting-constructor] reason="..."tx0 explain tx0/cpp:implicit-converting-constructor shows the same in the terminal. Found a false positive? Report it.