rust/src/libsyntax_ext
Mazdak Farrokhzad 485a084b45
Rollup merge of #61545 - flip1995:internal_lints, r=oli-obk
Implement another internal lints

cc #49509

This adds ~~two~~ one internal lint~~s~~:
1. LINT_PASS_IMPL_WITHOUT_MACRO: Make sure, that the `{declare,impl}_lint_pass` macro is used to implement lint passes. cc #59669
2. ~~USAGE_OF_TYCTXT_AND_SPAN_ARGS: item 2 on the list in #49509~~

~~With 2. I wasn't sure, if this lint should be applied everywhere. That means a careful review of 0955835 would be great. Also 73fb9b4 allows this lint on some functions. Should I also apply this lint there?~~

TODO (not directly relevant for review):
- [ ] https://github.com/rust-lang/rust/pull/59316#discussion_r280186517 (not sure yet, if this works or how to query for `rustc_private`, since it's not in [`Features`](https://doc.rust-lang.org/nightly/nightly-rustc/syntax/feature_gate/struct.Features.html) 🤔 cc @eddyb)
- [x] https://github.com/rust-lang/rust/pull/61735#discussion_r292389870
- [x] Check explicitly for the `{declare,impl}_lint_pass!` macros

r? @oli-obk
2019-07-05 20:26:51 +02:00
..
deriving Remove needless lifetimes 2019-07-03 10:01:01 +02:00
format_foreign Separate libsyntax_ext module 2019-06-16 14:17:01 +03:00
asm.rs
assert.rs Remove needless lifetimes 2019-07-03 10:01:02 +02:00
Cargo.toml
cfg.rs Run rustfmt --file-lines ... for changes from previous commits. 2019-06-11 14:11:59 +03:00
compile_error.rs
concat.rs syntax: Treat error literals in more principled way 2019-06-07 18:01:50 +03:00
concat_idents.rs
env.rs
error_codes.rs
format.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
format_foreign.rs Separate libsyntax_ext module 2019-06-16 14:17:01 +03:00
global_asm.rs
lib.rs Enable internal lints in bootstrap 2019-06-24 10:45:20 +02:00
log_syntax.rs
proc_macro_decls.rs syntax: Introduce default/with_unstable constructors for ExpnInfo 2019-06-18 10:48:56 +03:00
proc_macro_impl.rs
proc_macro_server.rs Fix meta-variable binding errors in macros 2019-06-23 01:30:41 +02:00
test.rs syntax: Introduce default/with_unstable constructors for ExpnInfo 2019-06-18 10:48:56 +03:00
test_case.rs syntax: Introduce default/with_unstable constructors for ExpnInfo 2019-06-18 10:48:56 +03:00
trace_macros.rs use pattern matching for slices destructuring 2019-06-08 10:49:46 +02:00