bors 032ae96856 Auto merge of #4257 - skade:improve-cast-alignment, r=flip1995
Improve cast_ptr_alignment lint

<!--
Thank you for making Clippy better!

We're collecting our changelog from pull request descriptions.
If your PR only updates to the latest nightly, you can leave the
`changelog` entry as `none`. Otherwise, please write a short comment
explaining your change.

If your PR fixes an issue, you can add "fixes #issue_number" into this
PR description. This way the issue will be automatically closed when
your PR is merged.

If you added a new lint, here's a checklist for things that will be
checked during review or continuous integration.

- [x] Followed [lint naming conventions][lint_naming]
- [x] Added passing UI tests (including committed `.stderr` file)
- [x] `cargo test` passes locally
- [x] Executed `util/dev update_lints`
- [x] Added lint documentation
- [x] Run `cargo fmt`

Note that you can skip the above if you are just opening a WIP PR in
order to get feedback.

Delete this line and everything above before opening your PR -->

* print alignment in bytes in the lint message
* ignore ZST left-hand types

Fixes #3797 and #4256
changelog:
* `cast_ptr_alignment`: Print alignment in bytes in the lint message
* `cast_ptr_alignment`: Ignore casting from ZST left-hand types
2019-07-09 15:28:26 +00:00
..
2019-05-28 15:34:25 +02:00
2019-05-12 13:07:58 +02:00
2019-01-21 13:59:49 +01:00
2019-01-08 21:46:39 +01:00
2019-03-07 23:26:47 +09:00
2019-03-10 22:07:10 +01:00
2019-01-27 13:46:22 +01:00
2019-01-08 21:46:39 +01:00
2019-03-10 18:06:28 +00:00
2019-03-10 22:07:10 +01:00
2019-02-18 19:36:58 -07:00
2019-02-18 19:36:58 -07:00
2019-05-12 13:07:58 +02:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-04-30 16:45:28 -03:00
2019-04-30 16:45:28 -03:00
2019-04-30 16:45:28 -03:00
2019-04-30 16:45:28 -03:00
2019-03-09 13:48:06 -08:00
2019-05-08 09:24:24 +02:00
2019-05-08 09:24:24 +02:00
2019-02-17 01:50:31 +01:00
2019-02-17 01:50:31 +01:00
2019-07-01 15:53:48 +02:00
2019-05-21 13:08:19 +02:00
2019-05-21 13:08:19 +02:00
2019-01-08 21:46:39 +01:00
2019-04-02 11:39:43 -03:00
2019-03-07 23:26:47 +09:00
2019-04-25 19:41:23 -07:00
2019-05-14 13:46:10 +02:00
2019-05-21 13:08:19 +02:00
2019-03-19 06:57:41 +01:00
2019-03-19 06:57:41 +01:00
2019-03-19 06:57:41 +01:00
2018-10-13 00:42:55 +02:00
2019-04-01 20:37:05 +02:00
2019-07-01 07:22:04 +02:00
2018-12-09 23:26:16 +01:00
2018-12-28 12:41:12 +01:00
2019-01-08 21:46:39 +01:00
2019-05-12 10:18:38 +02:00
2019-05-12 10:18:38 +02:00
2019-06-08 13:35:04 +02:00
2019-01-08 21:46:39 +01:00
2019-02-24 18:23:54 +01:00
2019-02-24 18:23:54 +01:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-06-14 10:45:03 +02:00
2019-06-14 10:45:03 +02:00
2019-07-06 12:34:32 +07:00
2019-07-06 12:34:32 +07:00
2019-07-06 12:34:32 +07:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-04-02 11:39:43 -03:00
2019-06-30 18:28:12 -04:00
2019-06-30 18:28:12 -04:00
2019-06-30 18:28:12 -04:00
2019-01-13 19:57:19 +01:00
2019-01-13 19:57:19 +01:00
2019-03-10 18:06:28 +00:00
2019-01-29 07:22:08 +02:00
2019-01-29 07:22:08 +02:00
2019-03-10 18:13:15 +00:00
2019-01-08 21:46:39 +01:00
2019-01-08 21:46:39 +01:00
2019-05-08 09:24:24 +02:00
2019-02-18 22:56:43 +00:00
2019-02-18 22:56:43 +00:00