LeSeulArtichaut
4a538d31e0
Do not hardcode lint name
2020-05-27 20:37:59 +02:00
LeSeulArtichaut
bb67915028
Apply suggestions from code review
2020-05-27 20:37:57 +02:00
Dylan DPC
24e101c418
Rollup merge of #71542 - crlf0710:confusable_idents, r=petrochenkov
...
Implement `confusable_idents` lint.
This collects all identifier symbols into `ParseSession` and examines them within the non-ascii-idents lint.
The skeleton generation part needs to be added to `unicode-security` crate. Will update this PR when the crate is updated.
r? @petrochenkov
EDIT: also included the `concat_idents` part.
2020-05-03 14:18:02 +05:30
Charles Lew
c05961c2db
Implement confusable_idents
lint.
2020-05-03 02:30:50 +08:00
Tshepang Lekhonkhobe
3be52b5941
fix rustdoc warnings
2020-05-02 10:41:04 +02:00
Camille GILLOT
e56c400432
Use the query system to allocate.
2020-04-28 11:34:17 +02:00
Mazdak Farrokhzad
1ccb0b4a02
rustc -> rustc_middle part 3 (rustfmt)
2020-03-30 07:19:55 +02:00
Mazdak Farrokhzad
0cb9e36090
rustc -> rustc_middle part 2
2020-03-30 07:16:56 +02:00
John Kåre Alsaker
8b16b023b1
Index HIR after creating TyCtxt
2020-03-14 22:52:30 +01:00
John Kåre Alsaker
38e613c4eb
Update krate_attrs
and get_module
2020-03-14 22:52:29 +01:00
Matthias Krüger
7b1b08cfee
remove lifetimes that can be elided (clippy::needless_lifetimes)
2020-03-12 20:03:09 +01:00
Matthias Krüger
83980aca20
Don't redundantly repeat field names (clippy::redundant_field_names)
2020-03-06 19:42:18 +01:00
Vadim Petrochenkov
e08c279eac
Rename syntax
to rustc_ast
in source code
2020-02-29 21:59:09 +03:00
Matthias Krüger
9523c89f18
use is_empty() instead of len() == x to determine if structs are empty.
2020-02-28 15:16:27 +01:00
jumbatm
0b2436f3a4
Move more into decorate functions.
2020-02-11 19:50:26 +10:00
jumbatm
d246385122
Run RustFmt
2020-02-11 19:49:01 +10:00
jumbatm
7c58ffe874
Invert control in struct_lint_level.
...
Caller now passes in a `decorate` function, which is only run if the
lint is allowed.
2020-02-11 19:47:40 +10:00
Mazdak Farrokhzad
e233331a51
syntax::print -> new crate rustc_ast_pretty
2020-02-01 18:59:49 +01:00
Mazdak Farrokhzad
097d5e1c5e
1. move node_id to syntax
...
2. invert rustc_session & syntax deps
3. drop rustc_session dep in rustc_hir
2020-02-01 18:58:08 +01:00
Mazdak Farrokhzad
de6046fa0f
remove rustc_error_codes deps except in rustc_driver
2020-01-18 21:53:53 +01:00
Mazdak Farrokhzad
f58db20362
move rustc::lint::{context, passes} to rustc_lint.
...
Also do some cleanup of the interface.
2020-01-11 07:42:26 +01:00
Mazdak Farrokhzad
03bdfe9db3
move logic to LintLevelsBuilder
2020-01-11 07:42:26 +01:00
Mazdak Farrokhzad
6f1a79cabe
GlobalCtxt: Erase LintStore
type.
2020-01-11 07:42:26 +01:00
Mazdak Farrokhzad
0997388b87
normalize rustc::hir::intravisit imports
2020-01-08 22:09:42 +01:00
Mazdak Farrokhzad
8351667091
intravisit: abstract over HIR Map
2020-01-08 22:01:07 +01:00
Mazdak Farrokhzad
ebfd8673a7
Remove rustc_hir reexports in rustc::hir.
2020-01-05 12:49:22 +01:00
Camille GILLOT
1fab03e908
Move lint levels machanism in librustc_lint.
2020-01-01 13:20:33 +01:00