Mazdak Farrokhzad
|
93a8283614
|
Move builtin attribute logic to new rustc_attr crate.
For now, this is all the crate contains, but more
attribute logic & types will be moved there over time.
|
2020-02-01 18:54:56 +01:00 |
jumbatm
|
25a8f9473f
|
Don't warn about snake case for field puns that don't introduce a new name.
|
2020-01-17 05:57:39 +10: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
|
45f27643db
|
prepare moving HardwiredLints to rustc_session
|
2020-01-11 03:26:16 +01:00 |
Mazdak Farrokhzad
|
8bd3d240e3
|
nix syntax::errors & prefer rustc_errors over errors
|
2020-01-10 07:41:30 +01:00 |
Mazdak Farrokhzad
|
0997388b87
|
normalize rustc::hir::intravisit imports
|
2020-01-08 22:09:42 +01:00 |
Yuki Okushi
|
b065031096
|
Rollup merge of #67936 - euclio:assoc-type-bad-style, r=Centril
fire "non_camel_case_types" for associated types
Fixes #67920.
|
2020-01-07 13:46:13 +09:00 |
Andy Russell
|
a7727c59ac
|
fire "non_camel_case_types" for associated types
|
2020-01-06 09:51:23 -05: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 |
Vadim Petrochenkov
|
70f1d57048
|
Rename `syntax_pos` to `rustc_span` in source code
|
2020-01-01 09:15:18 +03:00 |
Camille GILLOT
|
36f95ab3fa
|
Fallout in other crates.
|
2019-12-27 19:20:28 +01:00 |
Camille GILLOT
|
66f9198047
|
Use Arena inside hir::TraitMethod.
|
2019-12-27 19:20:28 +01:00 |
Camille GILLOT
|
8284035372
|
Fallout in other crates.
|
2019-12-26 23:38:46 +01:00 |
Mark Rousskov
|
a06baa56b9
|
Format the world
|
2019-12-22 17:42:47 -05:00 |
Camille GILLOT
|
5f5b6e7c67
|
Tidy.
|
2019-12-21 23:40:55 +01:00 |
Camille GILLOT
|
9694ab9e18
|
Use Arena inside hir::Body.
|
2019-12-21 23:39:19 +01:00 |
Camille GILLOT
|
42c03e4bb4
|
Use Arena inside hir::Mod.
|
2019-12-21 23:34:34 +01:00 |
Camille GILLOT
|
4f1c88be46
|
Use Arena inside hir::EnumDef.
|
2019-12-21 23:32:42 +01:00 |
Camille GILLOT
|
5fec1ca0ff
|
Use Arena inside hir::ImplItem.
|
2019-12-21 23:31:47 +01:00 |
Camille GILLOT
|
0f7d77363b
|
Use Arena inside hir::TraitItem.
|
2019-12-21 23:30:52 +01:00 |
Camille GILLOT
|
084e6722f9
|
Use Arena inside hir::Item.
|
2019-12-21 23:17:29 +01:00 |
varkor
|
7bc94cc3c2
|
Rename `Item.node` to `Item.kind`
|
2019-09-26 18:21:48 +01:00 |
varkor
|
d4573c9c1e
|
Rename `TraitItem.node` to `TraitItem.kind`
|
2019-09-26 18:21:09 +01:00 |
varkor
|
17726f6b52
|
Rename `Lit.node` to `Lit.kind`
|
2019-09-26 18:21:09 +01:00 |
varkor
|
ce6aabbaa1
|
Rename `ImplItem.node` to `ImplItem.kind`
|
2019-09-26 18:21:09 +01:00 |
varkor
|
8bd0382134
|
Rename `Pat.node` to `Pat.kind`
|
2019-09-26 18:21:09 +01:00 |
Caio
|
6a3d517314
|
Modifies how Arg, Arm, Field, FieldPattern and Variant are visited
Part of the necessary work to accomplish #63468.
|
2019-08-24 13:54:40 -03:00 |
Caio
|
6a42b0b28d
|
Merge Variant and Variant_
|
2019-08-14 14:47:01 -03:00 |
varkor
|
8aa45c65d8
|
Rename `ItemKind::Ty` to `ItemKind::TyAlias`
|
2019-08-04 20:13:37 +01:00 |
ljedrz
|
37d7e1f22a
|
rename hir::map::local_def_id_from_hir_id to local_def_id
|
2019-07-04 12:53:12 +02:00 |
ljedrz
|
d996c4d5a3
|
remove _by_hir_id if there is no NodeId counterpart
|
2019-06-17 18:57:21 +02:00 |
chansuke
|
b9266794da
|
Separate librustc_lint module
|
2019-06-16 14:17:01 +03:00 |
Nicholas Nethercote
|
fb084a48e2
|
Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.
|
2019-05-13 09:29:22 +10:00 |
Eduard-Mihai Burtescu
|
ff174fe09e
|
rustc: rename hir::def::Def to Res (short for "resolution").
|
2019-05-03 22:50:19 +03:00 |
Eduard-Mihai Burtescu
|
a3fcab36d2
|
rustc: factor most DefId-containing variants out of Def and into DefKind.
|
2019-05-03 22:48:27 +03:00 |
Mazdak Farrokhzad
|
fba110c805
|
reduce repetition in librustc(_lint) wrt. impl LintPass
|
2019-04-03 23:37:31 +02:00 |
John Kåre Alsaker
|
32bc4a50c0
|
Make more lints incremental
|
2019-03-25 23:00:59 +01:00 |
ljedrz
|
558a07b896
|
hir: remove NodeId from PatKind
|
2019-03-07 12:18:59 +01:00 |
ljedrz
|
6536dbb640
|
hir: HirId-ify intravisit
|
2019-02-20 11:00:43 +01:00 |
varkor
|
18ce997e51
|
Fix rebase issue
|
2019-02-15 23:34:04 +00:00 |
varkor
|
2279907fd2
|
Take Const into account with nonstandard style lint
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
|
2019-02-15 22:29:24 +00:00 |
Andy Russell
|
2f95299f6b
|
specify "upper camel case" in style lint
Also, fix an issue where internal upper case letters were converted to
lower case.
|
2019-02-13 13:41:32 -05:00 |
Taiki Endo
|
6140134b6f
|
librustc_lint => 2018
|
2019-02-08 20:35:41 +09:00 |
ljedrz
|
55ef78e885
|
hir: add HirId to main Hir nodes
|
2019-02-02 17:35:20 +01:00 |
Andy Russell
|
0897ffc28f
|
remove `_with_applicability` from suggestion fns
|
2019-01-26 23:07:55 -05:00 |
John Kåre Alsaker
|
beb0c74950
|
Combine all builtin early lints and use a separate walk for plugin lints. Add a -Z no-interleave-lints option to allow benchmarking lints
|
2019-01-19 05:01:29 +01:00 |
Andy Russell
|
1b28f5aa66
|
improve non_camel_case_types diagnostics
Use a structured suggestion and tighten the span to just the identifier.
|
2019-01-08 13:24:38 -05:00 |
Andy Russell
|
e379970056
|
improve non_upper_case_globals diagnostics
Use a structured suggestion and tighten the span to just the identifier.
|
2019-01-08 13:24:38 -05:00 |
Andy Russell
|
7c0d145ec1
|
improve non_snake_case diagnostics
Use a structured suggestion and tighten the span to just the identifier.
|
2019-01-08 13:24:38 -05:00 |