librustc: Can mark functions as deprecated.

#723 - Add a deprecated items check to lint.

So far it actually only works for functions. I'm not exactly sure how to go about doing it for things like types, structs etc and catching only their uses.