Kiet Tran
deb3ca53a8
Mark allowed dead code and lang items as live
...
Dead code pass now explicitly checks for `#[allow(dead_code)]` and
`#[lang=".."]` attributes on items and marks them as live if they have
those attributes. The former is done so that if we want to suppress
warnings for a group of dead functions, we only have to annotate the
"root" of the call chain.
2014-01-12 13:54:36 -05:00
Brian Anderson
55f81bce83
rustc: Fix style of Lint enum
2014-01-09 18:46:23 -08:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
Marvin Löbel
90b394514d
Renamed Option::map_default and mutate_default to map_or and mutate_or_set
2014-01-08 00:53:40 +01:00
Eduard Burtescu
3119d18e55
Disowned the Visitor.
2014-01-06 14:00:46 +02:00
Patrick Walton
449ebeea08
librustc: De-@mut
the AST map
2014-01-03 14:01:58 -08:00
Kiet Tran
576a85105f
Mark provided methods in dead-code pass
2013-12-31 16:19:57 -05:00
Patrick Walton
cc0584731a
librustc: De-@mut
the def map.
...
This is the last `@mut` in `librustc` that does not depend on libsyntax.
2013-12-26 15:54:37 -08:00
Patrick Walton
fecef74d57
librustc: De-@mut
the inherent implementations list
2013-12-26 15:54:37 -08:00
Patrick Walton
5c63b1febc
librustc: De-@mut
the entry function and entry type in the session
2013-12-26 15:54:33 -08:00
Patrick Walton
f7393d8658
librustc: De-@mut
the method map
2013-12-26 15:54:32 -08:00
Patrick Walton
42f7f7f437
librustc: De-@mut
inherent_impls
in the type context
2013-12-26 13:01:28 -08:00
Kiet Tran
05a41dc75f
Check even more live Path nodes in dead-code pass
2013-12-16 18:01:36 -05:00
Kiet Tran
fb4a1d88f5
Mark live codes in struct/enum for dead-code pass
2013-12-16 02:15:00 -05:00
Kiet Tran
71ce559f7d
Dead-code pass now marks and warns foreign items
2013-12-14 00:35:41 -05:00
Kiet Tran
d5ad32f388
Check more live Path nodes in dead-code pass
2013-12-14 00:26:15 -05:00
Kiet Tran
c06dd0e0af
Add dead-code warning pass
2013-12-08 02:55:27 -05:00