Eduard Burtescu
42eb7032fa
Fixup indentation after methodification.
2016-05-11 08:48:12 +03:00
Eduard Burtescu
76affa5d6f
rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
513d392f7e
rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
f8ea24edc8
rustc: Avoid free functions taking &TyCtxt and &InferCtxt.
2016-05-11 04:14:58 +03:00
Seo Sanghyeon
01fb27f648
Remove unused trait imports
2016-04-12 22:58:55 +09:00
Eduard Burtescu
ffca6c3e15
rustc: move middle::{def,def_id,pat_util} to hir.
2016-04-06 09:14:21 +03:00
Eduard Burtescu
8b0937293b
rustc: move rustc_front to rustc::hir.
2016-04-06 09:01:55 +03:00
Benjamin Herr
bcdaccfbbe
librustc: replace span_bug calls with span_bug!()
2016-03-31 22:04:23 +02:00
Eduard Burtescu
5efdde0de1
rustc: move cfg, infer, traits and ty from middle to top-level.
2016-03-27 01:05:54 +02:00
Jeffrey Seyfried
37ba66a66e
Rename middle::ty::ctxt to TyCtxt
2016-03-03 07:37:56 +00:00
Vadim Petrochenkov
9047b201bf
Move span into StructField
...
+ some cleanup in rustdoc
2016-03-02 10:32:04 +03:00
Vadim Petrochenkov
06755d90ce
Split PatKind::Enum into PatKind::TupleStruct and PatKind::Path
2016-02-16 00:40:38 +03:00
Vadim Petrochenkov
9b40e1e5b3
Rename hir::Pat_ and its variants
2016-02-14 15:25:12 +03:00
Niko Matsakis
35b6e2b0bb
Instrument a bunch of tasks that employ the HIR map in one way or
...
another and were not previously instrumented.
2016-02-05 13:19:55 -05:00
Vadim Petrochenkov
2084c2c33a
Rename Def's variants and don't reexport them
2016-01-20 22:31:10 +03:00
Vadim Petrochenkov
8ea7b88c9b
Require stability annotations on fields of tuple variants
2016-01-14 17:08:35 +03:00
Niko Matsakis
005fa14358
Annotate the compiler with information about what it is doing when.
2016-01-05 21:05:50 -05:00
Nick Cameron
95dc7efad0
use structured errors
2015-12-30 14:27:59 +13:00
Vadim Petrochenkov
6c87b19158
Abstract away differences between Vec and ptr::P in HIR
2015-12-18 00:52:56 +03:00
Jeffrey Seyfried
8364a6feef
Remove unused imports
2015-12-17 05:43:27 +00:00
Vadim Petrochenkov
105bd15207
Address the review comments
2015-12-12 21:40:45 +03:00
Vadim Petrochenkov
e3ed7b0501
Implement #[deprecated]
attribute (RFC 1270)
2015-12-12 19:39:37 +03:00
Ariel Ben-Yehuda
0a8bb4c509
split the metadata code into rustc_metadata
...
tests & rustdoc still broken
2015-11-26 18:22:40 +02:00
Ariel Ben-Yehuda
d45dd9423e
make CrateStore a trait object
...
rustdoc still broken
2015-11-26 18:21:17 +02:00
Ariel Ben-Yehuda
3877664b56
stop using csearch in librustc and librustc_lint
2015-11-26 18:21:17 +02:00
Vadim Petrochenkov
4b8078424e
Consider a crate staged if it has stable
or unstable
in its root
2015-11-26 00:15:46 +03:00
Vadim Petrochenkov
5127d24a3e
Remove #[staged_api]
2015-11-25 21:55:26 +03:00
bors
040a77f772
Auto merge of #29952 - petrochenkov:depr, r=brson
...
Part of https://github.com/rust-lang/rust/issues/29935
The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things.
2015-11-23 20:08:49 +00:00
Vadim Petrochenkov
a613059e3f
Rename #[deprecated] to #[rustc_deprecated]
2015-11-20 16:11:20 +03:00
Vadim Petrochenkov
c1ad5af4a6
Changes to data produced by privacy pass
2015-11-19 14:16:35 +03:00
Niko Matsakis
98b046e16e
Various straight-forward ports that override visit_nested_items
...
to do "in-situ" visits.
2015-11-18 19:23:29 -05:00
Vadim Petrochenkov
5cdfd8401b
Review fixes
2015-11-18 01:24:22 +03:00
Vadim Petrochenkov
52acc05f63
Rework stability annotation pass
2015-11-18 01:24:20 +03:00
bors
e2bb53ca52
Auto merge of #29291 - petrochenkov:privacy, r=alexcrichton
...
The public set is expanded with trait items, impls and their items, foreign items, exported macros, variant fields, i.e. all the missing parts. Now it's a subset of the exported set.
This is needed for https://github.com/rust-lang/rust/pull/29083 because stability annotation pass uses the public set and all things listed above need to be annotated.
Rustdoc can now be migrated to the public set as well, I guess.
Exported set is now slightly more correct with regard to exported items in blocks - 1) blocks in foreign items are considered and 2) publicity is not inherited from the block's parent - if a function is public it doesn't mean structures defined in its body are public.
r? @alexcrichton or maybe someone else
2015-11-02 23:38:49 +00:00
Vadim Petrochenkov
306b0efc44
Add comment for stability.rs
2015-11-01 16:33:46 +03:00
Vadim Petrochenkov
3468b8d42c
Remove PatWildMulti
2015-10-31 03:44:43 +03:00
Vadim Petrochenkov
43b4373a23
Tweak stability to not require annotations on impl items and unnamed fields
2015-10-25 05:30:26 +03:00
bors
747d951e88
Auto merge of #29014 - petrochenkov:stability, r=brson
...
Stricter checking of stability attributes + enforcement of their invariants at compile time
(+ removed dead file librustc_front/attr.rs)
I intended to enforce use of `reason` for unstable items as well (it normally presents for new items), but it turned out too intrusive, many older unstable items don't have `reason`s.
r? @aturon
I'm studying how stability works and do some refactoring along the way, so it's probably not the last PR.
2015-10-16 17:47:01 +00:00
Vadim Petrochenkov
46750d0409
Merge VariantData and VariantData_
2015-10-13 15:19:27 +03:00
Vadim Petrochenkov
40aa09e4c9
Merge struct fields and struct kind
2015-10-13 15:19:25 +03:00
Vadim Petrochenkov
30af54dede
Dict -> Struct, StructDef -> VariantData, def -> data
2015-10-13 15:19:24 +03:00
Vadim Petrochenkov
877c35e8a2
Remove now redundant NodeId from Variant
2015-10-13 15:19:18 +03:00
Vadim Petrochenkov
495566ee61
Decouple structure kinds from NodeIds
2015-10-13 15:19:17 +03:00
Vadim Petrochenkov
ab671552c3
Refactor attr::Stability
...
Stricter checking + enforcement of invariants at compile time
2015-10-13 06:01:31 +03:00
Nick Cameron
e0c74868c3
Fix stability
2015-10-09 11:53:41 +13:00
Niko Matsakis
01f32ace03
Convert DefId to use DefIndex, which is an index into a list of
...
paths, and construct paths for all definitions. Also, stop rewriting
DefIds for closures, and instead just load the closure data from
the original def-id, which may be in another crate.
2015-10-01 10:43:07 -04:00
Niko Matsakis
3b1399df2d
Make calling def_id on a DefSelfTy an error; the previous defids that
...
were returned, either the trait or the *self type itself*, were not
particularly representative of what the Def is (a type parameter).
Rewrite paths to handle this case specially, just as they handle the
primitive case specifically. This entire `def_id` codepath is kind of a
mess.
2015-10-01 10:37:19 -04:00
Niko Matsakis
5600c6282e
move direct accesses of node
to go through as_local_node_id
, unless
...
they are being used as an opaque "position identifier"
2015-10-01 10:37:19 -04:00
Niko Matsakis
9ff4f57cd0
move job of creating local-def-ids to ast-map (with a few stragglers)
2015-10-01 10:28:28 -04:00
Niko Matsakis
dc4a4ada58
move LOCAL_CRATE to cstore
2015-10-01 09:44:28 -04:00