about summary refs log tree commit diff
path: root/src/test/ui/rust-2018/macro-use-warned-against.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-14/+0
2020-04-23Moving more build-pass tests to check-passVal Markovic-1/+1
One or two tests became build-pass without the FIXME because they really needed build-pass (were failing without it). Helps with #62277
2020-03-07resolve: `directive` -> `import`Vadim Petrochenkov-1/+1
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-08-17Stabilize `use_extern_macros`Vadim Petrochenkov-1/+0
2018-08-01rustc: Trim down the `rust_2018_idioms` lint groupAlex Crichton-1/+1
These migration lints aren't all up to par in terms of a good migration experience. Some, like `unreachable_pub`, hit bugs like #52665 and unprepared macros to be handled enough of the time. Others like linting against `#[macro_use]` are swimming upstream in an ecosystem that's not quite ready (and slightly buggy pending a few current PRs). The general idea is that we will continue to recommend the `rust_2018_idioms` lint group as part of the transition guide (as an optional step) but we'll be much more selective about which lints make it into this group. Only those with a strong track record of not causing too much churn will make the cut. cc #52679
2018-07-12rustc: Lint against `#[macro_use]` in 2018 idiomsAlex Crichton-0/+25
This commit adds a lint to the compiler to warn against the `#[macro_use]` directive as part of the `rust_2018_idioms` lint. This lint is turned off by default and is only enabled when the `use_extern_macros` feature is also enabled. The lint here isn't fully fleshed out as it's just a simple warning rather than suggestions of how to actually import the macro, but hopefully it's a good base to start from! cc #52043