about summary refs log tree commit diff
path: root/src/rt/jemalloc/test/aligned_alloc.c
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-16 22:25:39 -0700
committerbors <bors@rust-lang.org>2013-05-16 22:25:39 -0700
commitc69f8ea91a47830c8acf33774610a1c23136091f (patch)
treefbdf8ac81174f82cf9f3d3a2e458f27f413eafc7 /src/rt/jemalloc/test/aligned_alloc.c
parent918bfa710c2079ed1a690036eb794694b75faa30 (diff)
parent4d44abd52aa03b5c896849d4785d387538fbb51e (diff)
downloadrust-c69f8ea91a47830c8acf33774610a1c23136091f.tar.gz
rust-c69f8ea91a47830c8acf33774610a1c23136091f.zip
auto merge of #6093 : alexcrichton/rust/issue-2647, r=thestinger
Closes #2647

This way it's much easier to add lints throughout compilation correctly, and
functions on impls can alter the way lints are emitted. This involved pretty much rewriting how lints are emitted. Beforehand, only items could alter the lint settings, so whenever a lint was added it had to be associated with whatever item id it was coming from. I removed this (possibly questionably) in favor of just specifying a span and a message when adding a lint. When lint checking comes around, it looks at all the lints and sees which node with attributes best encloses it and uses that level of linting. This means that all consumer code doesn't have to deal with what item things came from (especially because functions on impls aren't items). More details of this can be found in the code (and comments).

As a bonus, I managed to greatly simplify emission of lints in resolve.rs about unused imports. Now instead of it manually tracking what the lint level is, it's all moved over into the lint module (as is to be expected).
Diffstat (limited to 'src/rt/jemalloc/test/aligned_alloc.c')
0 files changed, 0 insertions, 0 deletions