Auto merge of #4279 - tee-too:fix-3499, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 13 Jul 2017 14:48:46 +0000 (14:48 +0000)
committerbors <bors@rust-lang.org>
Thu, 13 Jul 2017 14:48:46 +0000 (14:48 +0000)
Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499


Trivial merge