What are all the steps to add a warning?


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


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.