Vadim Petrochenkov
ceb4c3fa30
stability: Do not use buffer_lint
after lowering to HIR
2019-10-10 23:38:35 +03:00
Mazdak Farrokhzad
01075d8f6b
Rollup merge of #64763 - GuillaumeGomez:long-err-explanation-E0734, r=estebank
...
Add E0734 and its long explanation
Part of https://github.com/rust-lang/rust/issues/61137
2019-09-28 22:12:02 +02:00
varkor
b474867961
Rename ForeignItem.node
to ForeignItem.kind
2019-09-26 18:21:48 +01:00
varkor
7bc94cc3c2
Rename Item.node
to Item.kind
2019-09-26 18:21:48 +01:00
Guillaume Gomez
68d099a175
Create new error code E0734 for stability attributes used outside of standard library
2019-09-25 13:23:53 +02:00
Vadim Petrochenkov
f7434aef26
Support "soft" feature-gating using a lint
...
Use it for feature-gating `#[bench]`
2019-09-07 21:37:51 +03:00
Caio
6a42b0b28d
Merge Variant and Variant_
2019-08-14 14:47:01 -03:00
Vadim Petrochenkov
0817fc6c6c
Support deprecation checking for macros
2019-07-07 13:04:07 +03:00
Vadim Petrochenkov
d9ee97e896
resolve: Use standard stability diagnostics for macros
2019-07-07 13:04:07 +03:00
ljedrz
37d7e1f22a
rename hir::map::local_def_id_from_hir_id to local_def_id
2019-07-04 12:53:12 +02:00
Jeremy Stucki
d28832dde9
Remove needless lifetimes
2019-07-03 10:01:02 +02:00
ljedrz
73cb9ab526
rename hir::map::get_by_hir_id to get
2019-06-20 12:50:06 +02:00
Eduard-Mihai Burtescu
b25b466a88
rustc: remove 'x: 'y bounds (except from comments/strings).
2019-06-18 18:10:21 +03:00
Eduard-Mihai Burtescu
f3f9d6dfd9
Unify all uses of 'gcx and 'tcx.
2019-06-14 18:58:23 +03:00
Eduard-Mihai Burtescu
fff08cb043
Run rustfmt --file-lines ...
for changes from previous commits.
2019-06-12 13:38:28 +03:00
Eduard-Mihai Burtescu
17cdd356da
rustc: replace TyCtxt<'tcx, 'gcx, 'tcx>
with TyCtxt<'gcx, 'tcx>
.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
2441253508
Fix fallout from deny(unused_lifetimes)
.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
37799a5552
rustc: replace TyCtxt<'a, 'gcx, 'tcx>
with TyCtxt<'tcx, 'gcx, 'tcx>
.
2019-06-12 13:38:27 +03:00
Alexander Regueiro
35585c499f
Aggregation of drive-by cosmetic changes.
2019-06-05 21:09:26 +01:00
bors
837b72c805
Auto merge of #60955 - agnxy:rename-assoc, r=oli-obk,Centril
...
Rename "Associated*" to "Assoc*"
This change is for #60163 .
r? @oli-obk
2019-05-28 05:28:13 +00:00
Nicholas Nethercote
26451ef7b5
Avoid unnecessary internings.
...
Most involving `Symbol::intern` on string literals.
2019-05-27 13:58:38 +10:00
Andrew Xu
46b9ed4fa1
Rename "Associated*" to "Assoc*"
...
We are going to uniform the terminology of all associated items.
Methods that may or may not have `self` are called "associated
functions". Because `AssociatedFn` is a bit long, we rename `Associated`
to `Assoc`.
2019-05-26 17:49:02 +08:00
John Kåre Alsaker
3f87975d65
Update get_lib_features, defined_lib_features, get_lang_items, defined_lang_items, missing_lang_items, postorder_cnums and maybe_unused_extern_crates
2019-05-23 18:51:51 +02:00
Nicholas Nethercote
ea9fac5687
Return a Symbol
from name_or_empty
functions.
2019-05-13 09:31:32 +10:00
Nicholas Nethercote
999c1fc281
Remove the equality operation between Symbol
and strings.
...
And also the equality between `Path` and strings, because `Path` is made
up of `Symbol`s.
2019-05-13 09:31:30 +10: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
b92b1a76e1
rustc: use DefKind instead of Def, where possible.
2019-05-03 22:50:09 +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
Taylor Cramer
e617025e96
Add rustc_allow_const_fn_ptr
2019-04-23 15:55:31 -07:00
Mazdak Farrokhzad
95e7a50166
Rollup merge of #59389 - euclio:deprecated-suggestion, r=varkor
...
replace redundant note in deprecation warning
2019-03-26 09:05:51 +01:00
bors
d91b32b4dc
Auto merge of #59256 - petrochenkov:derval2, r=Zoxc
...
Make meta-item API compatible with `LocalInternedString::get` soundness fix
r? @Zoxc
2019-03-25 12:21:46 +00:00
Andy Russell
8d7c2bb06a
replace redundant note in deprecation warning
2019-03-24 11:02:37 -04:00
David Wood
5c3d1e5d76
Separate variant id and variant constructor id.
...
This commit makes two changes - separating the `NodeId` that identifies
an enum variant from the `NodeId` that identifies the variant's
constructor; and no longer creating a `NodeId` for `Struct`-style enum
variants and structs.
Separation of the variant id and variant constructor id will allow the
rest of RFC 2008 to be implemented by lowering the visibility of the
variant's constructor without lowering the visbility of the variant
itself.
No longer creating a `NodeId` for `Struct`-style enum variants and
structs mostly simplifies logic as previously this `NodeId` wasn't used.
There were various cases where the `NodeId` wouldn't be used unless
there was an unit or tuple struct or enum variant but not all uses of
this `NodeId` had that condition, by removing this `NodeId`, this must
be explicitly dealt with. This change mostly applied cleanly, but there
were one or two cases in name resolution and one case in type check
where the existing logic required a id for `Struct`-style enum variants
and structs.
2019-03-24 12:10:16 +03:00
bors
0f118f6a6c
Auto merge of #59096 - ljedrz:HirIdify_AccessLevel, r=Zoxc
...
middle: replace NodeId with HirId in AccessLevels
Pushing the limits of HirIdification (#57578 ).
Replaces `NodeId` with `HirId` in `middle::privacy::AccessLevels`. Actually this time I was more successful and cracked it; I probably tried to HirIdify too much at once when I attempted it last time ^^.
r? @Zoxc
2019-03-23 12:21:27 +00:00
bors
c82834e2b9
Auto merge of #58994 - oli-obk:deprecated_derive, r=petrochenkov
...
Hide deprecation warnings inside derive expansions
Fixes #58822
2019-03-17 20:49:55 +00:00
Vadim Petrochenkov
db74efce69
Make meta-item API compatible with LocalInternedString::get
soundness fix
2019-03-17 17:04:58 +03:00
Oliver Scherer
a69e12c21b
Don't report deprecation lints in derive expansions
2019-03-16 22:33:15 +01:00
Vadim Petrochenkov
8371caf5ee
syntax: Do not accidentally treat multi-segment meta-items as single-segment
2019-03-16 23:13:15 +03:00
Eduard-Mihai Burtescu
e0c75ff40d
rustc: rename item_path to def_path (except the module in ty).
2019-03-15 13:25:10 +02:00
ljedrz
856b081eb2
middle: replace NodeId with HirId in AccessLevels
2019-03-13 16:33:10 +01:00
John Kåre Alsaker
140a837fb6
Make misc checking 1 more parallel
2019-03-06 04:47:05 +01:00
ljedrz
77fa041fc1
hir: remove NodeId from Item
2019-03-02 07:48:52 +01:00
ljedrz
ae45f170ee
hir: remove NodeId from StructField
2019-03-02 07:48:52 +01:00
ljedrz
a29ceb9f51
hir: remove NodeId from ImplItem
2019-03-01 11:18:49 +01:00
ljedrz
c2e517e0c4
ty: HirIdify some lints
2019-03-01 11:18:49 +01:00
bors
4855370740
Auto merge of #58741 - varkor:lang-lib-feature-shared-name, r=alexreg
...
Allow lang and lib features to share names
Fixes https://github.com/rust-lang/rust/issues/58715 .
I didn't add a test, because there's currently no standard lang test feature and I felt apprehensive about adding a permanently unstable feature. Instead, a shared lang/lib feature will be used in https://github.com/rust-lang/rust/pull/57760 and will essentially provide an immediately test.
2019-02-27 12:22:13 +00:00
varkor
0f6b148db2
Allow lang and lib features to share names
2019-02-25 22:14:18 +00:00
ljedrz
d7ced1dd5a
hir: remove NodeId from Expr
2019-02-24 17:09:37 +01:00
ljedrz
46e4f4ae61
middle: partially HirIdify stability
2019-02-24 07:50:46 +01:00