Mazdak Farrokhzad
8bd3d240e3
nix syntax::errors & prefer rustc_errors over errors
2020-01-10 07:41:30 +01:00
Mazdak Farrokhzad
ebfd8673a7
Remove rustc_hir reexports in rustc::hir.
2020-01-05 12:49:22 +01:00
Mazdak Farrokhzad
4ff12ce4c1
Normalize `syntax::symbol` imports.
2020-01-02 13:57:04 +01:00
Camille GILLOT
6b87d5cdf1
Syntax for hir::Ty.
2019-12-27 19:20:28 +01:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mazdak Farrokhzad
a7aec3f207
1. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.
...
2. mir::Mutability -> ast::Mutability.
2019-12-20 22:22:44 +01:00
Mark Rousskov
f03d8f305a
Move early lint declarations to librustc_session
2019-12-03 12:19:14 -05:00
Camille GILLOT
ed640c6a27
Merge hir::Mutability into ast::Mutability.
2019-11-10 12:21:05 +01:00
varkor
7bc94cc3c2
Rename `Item.node` to `Item.kind`
2019-09-26 18:21:48 +01:00
varkor
c3d8791373
Rename `Ty.node` to `Ty.kind`
2019-09-26 18:21:10 +01:00
Oliver Scherer
26e9990198
Add a "diagnostic item" scheme
...
This allows lints and other diagnostics to refer to items
by a unique ID instead of relying on whacky path
resolution schemes that may break when items are
relocated.
2019-08-30 01:00:55 +02:00
Vadim Petrochenkov
136db2235a
hygiene: `ExpnInfo` -> `ExpnData`
...
For naming consistency with everything else in this area
2019-08-15 20:41:45 +03:00
Vadim Petrochenkov
73dee258c1
hygiene: Remove `Option`s from functions returning `ExpnInfo`
...
The expansion info is not optional and should always exist
2019-08-15 20:39:27 +03:00
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