Commit graph

4 commits

Author SHA1 Message Date
Niko Matsakis
9b5accade7 Fallout in tests 2015-04-02 13:24:46 -04:00
Ivan Petkov
fcf70230eb Properly reimplement unsafe-code lint to honor changing lint attributes 2015-02-23 22:32:58 -08:00
Manish Goregaokar
d316a34ec2 Fix lint-unsafe-code test from #22542 2015-02-22 01:53:18 +05:30
Ivan Petkov
be0dc49675 Unsafe lint will also check for other unsafe code
Checks include declaration/implementation of unsafe functions, traits,
and methods.

This allows warning or forbidding all uses of unsafe code, whereas
previously only unsafe blocks were caught by the lint.

The lint has been renamed from `unsafe-blocks` to `unsafe-code` to
reflect its new purpose.

This is a minor [breaking-change]

Closes #22430
2015-02-19 20:43:09 -08:00