What are all the steps to add a warning?


#1

I am new to rustc and i want to make it throw a warning on some circumstances in the code. How to do that?


#2

It would probably a good idea to get a lint into Clippy first. Clippy is a collection of lints to catch common mistakes and currently implements nearly 200 different lints for a lot of different things.