Vadim Petrochenkov
dfcbe75900
syntax_pos: Introduce a helper for checking whether a span comes from expansion
2019-08-15 20:38:12 +03:00
Mark Rousskov
2601c86487
Handle cfg(bootstrap) throughout
2019-08-14 05:39:53 -04:00
Vadim Petrochenkov
16918a8e28
Rename some things in syntax_pos/hygiene
...
More consistent with other naming:
ExpnFormat -> ExpnKind
ExpnKind::name -> ExpnKind::descr
DesugaringKind::name -> DesugaringKind::descr
Shorter, no tautology:
CompilerDesugaring -> Desugaring
CompilerDesugaringKind -> DesugaringKind
2019-07-11 00:12:07 +03:00
flip1995
7de6f54728
Turn internal lints into tool lints
2019-06-24 10:45:21 +02:00
flip1995
65c81dee75
Allow default_hash_types in some crates
2019-06-24 10:45:20 +02:00
flip1995
37f09cb237
Only allow {declare,impl}_lint_pass macros for implementing LintPass
2019-06-24 10:45:20 +02:00
flip1995
7d0a952e46
Implement initernal lint LINT_PASS_IMPL_WITHOUT_MACRO
2019-06-24 10:45:20 +02:00
Nicholas Nethercote
caea42f6c8
Introduce and use SyntaxContext::outer_expn_info()
.
...
It reduces two `hygiene_data` accesses to one on some hot paths.
2019-05-29 09:32:56 +10:00
Oliver Scherer
d6ca34c9d2
Use Symbol
more in lint APIs
2019-05-27 12:28:54 +02:00
Eduard-Mihai Burtescu
ff174fe09e
rustc: rename hir::def::Def to Res (short for "resolution").
2019-05-03 22:50:19 +03:00
flip1995
747d288be4
Implement internal lints
...
- USAGE_OF_QUALIFIED_TY
- TY_PASS_BY_REFERENCE
2019-04-28 21:19:25 +02:00
flip1995
136d66f011
Uplift get_def_path
from Clippy
...
This uplifts `get_def_path` from Clippy. This is a follow up on the
implementation of internal lints: #59316
The internal lint implementation also copied the implementation of the
`AbsolutePathPrinter`. To get rid of this code duplication this also
uplifts the `get_def_path` function from Clippy.
This also renames `match_path` to `match_def_path`, as it was originally
named in Clippy.
2019-04-12 10:38:39 +02:00
flip1995
278ab1905c
Move match_path from DefId to lint::LateContext
2019-04-05 23:04:56 +02:00
hgallagher1993
a96492112c
Use declare_lint_pass! and impl_lint_pass! in more places
2019-04-04 13:23:11 -04:00
flip1995
e536037af3
Deduplicate code in TyKind lint
2019-04-03 18:22:19 +02:00
flip1995
5a788f0ff7
Fix bug in TyKind lint
2019-04-03 18:22:19 +02:00
flip1995
9b2bf70851
Make internal lints allow-by-default
2019-04-03 18:22:19 +02:00
flip1995
16acf7d618
use check_path instead of check_expr
2019-04-03 18:22:19 +02:00
flip1995
157e7974af
Fix rebase fallout
2019-04-03 18:22:18 +02:00
flip1995
5c0656789d
Add internal lints default_hash_types and usage_of_ty_tykind
2019-04-03 18:22:18 +02:00