Seo Sanghyeon
7ad1900e1c
Remove unused trait imports flagged by lint
2016-05-03 18:48:34 +09:00
Niko Matsakis
489a6c95bf
replace fileline_{help,note} with {help,note}
...
The extra filename and line was mainly there to keep the indentation
relative to the main snippet; now that this doesn't include
filename/line-number as a prefix, it is distracted.
2016-05-02 11:49:23 -04:00
Eduard Burtescu
e8a8dfb056
rustc: retire hir::map's paths.
2016-04-06 13:51:55 +03: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
Eduard Burtescu
5efdde0de1
rustc: move cfg, infer, traits and ty from middle to top-level.
2016-03-27 01:05:54 +02:00
Eduard Burtescu
5647586ed3
rustc: move middle::subst into middle::ty.
2016-03-27 01:05:53 +02:00
Felix S. Klock II
213d57983d
Expose attached attributes to FnKind
abstraction so that I can look at them in borrowck.
2016-03-21 18:36:22 +01:00
Aaron Turon
9bcfdb7b9c
Move projection_mode to InferContext rather than SelectionContext to reduce chance of bugs
2016-03-14 15:05:13 -07:00
Eduard Burtescu
ffa0860467
Track fn type and lifetime parameters in TyFnDef.
2016-03-09 16:45:28 +02:00
Eli Friedman
b423a0f9ef
Split TyBareFn into TyFnDef and TyFnPtr.
...
There's a lot of stuff wrong with the representation of these types:
TyFnDef doesn't actually uniquely identify a function, TyFnPtr is used to
represent method calls, TyFnDef in the sub-expression of a cast isn't
correctly reified, and probably some other stuff I haven't discovered yet.
Splitting them seems like the right first step, though.
2016-03-09 16:45:28 +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
8b026a6e48
Use numeric field Name
s ("0", "1" etc) for positional fields
2016-03-02 10:31:19 +03:00
Vadim Petrochenkov
8b60b948d9
Get rid of hir::StructFieldKind
2016-03-02 10:31:19 +03:00
Vadim Petrochenkov
9b40e1e5b3
Rename hir::Pat_ and its variants
2016-02-14 15:25:12 +03:00
Oliver 'ker' Schneider
14e09ad468
[breaking-change] don't glob export ast::MetaItem_
2016-02-11 12:34:48 +01:00
Oliver Schneider
69072c4f5d
[breaking-change] don't pub export ast::Lit_ variants
2016-02-11 12:34:48 +01:00
Oliver Schneider
243a30c931
[breaking-change] don't glob import/export syntax::abi enum variants
2016-02-11 12:34:48 +01:00
Ariel Ben-Yehuda
29c296f90b
clean up trans_static_method_callee and friends
2016-01-21 14:42:09 +02:00
Vadim Petrochenkov
2084c2c33a
Rename Def's variants and don't reexport them
2016-01-20 22:31:10 +03:00
Vadim Petrochenkov
ceaaa1bc33
Refactor definitions of ADTs in rustc::middle::def
2016-01-20 21:50:57 +03:00
Niko Matsakis
0defb158aa
implement the obligation forest data structure and add some unit tests
2016-01-14 12:59:50 -05:00
Nick Cameron
aaa02b3ff9
Refactoring
2015-12-30 14:27:59 +13:00
Nick Cameron
95dc7efad0
use structured errors
2015-12-30 14:27:59 +13:00
bors
d4ffaf6f83
Auto merge of #30269 - sanxiyn:no-mangle-generic, r=Aatch
...
Fix #15844 .
Should the default be Deny instead?
2015-12-16 14:12:43 +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
Seo Sanghyeon
55ffc33b10
Warn no_mangle on generic functions
2015-12-09 01:48:40 +09:00
Vadim Petrochenkov
eb789de803
Do MTWT resolution during lowering to HIR
2015-12-05 00:40:21 +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
f5fbefa3af
remove csearch from resolve and typeck
2015-11-26 18:21:17 +02: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
e4ff9f71db
Port a bunch of code new-visitor; all of these ports were
...
straightforward uses of `visit_all_items`. In some cases I had to remove
empty `visit_item` calls that were just to suppress visiting nested
items.
2015-11-18 19:22:18 -05:00
bors
50b969d3b2
Auto merge of #29882 - devonhollowood:master, r=Manishearth
...
Implement #14615
2015-11-18 02:02:00 +00:00
Devon Hollowood
5e8225af91
Remove unused imports
2015-11-17 01:19:14 -08:00
Devon Hollowood
07e108f038
Remove 'raw_pointer_derive' lint ( #14615 )
2015-11-17 01:19:14 -08:00
Oliver Schneider
e36872da5b
ImplItem_ -> ImplItemKind rename
2015-11-16 10:35:30 +01:00
Oliver Schneider
eaaa60dbea
rename ImplItem_::*ImplItem to ImplItem_::*
...
[breaking change]
2015-11-16 10:34:45 +01:00
bors
cd79acf21e
Auto merge of #29109 - nxnfufunezn:master, r=Manishearth
...
Fixes : #19668
r? @Manishearth
2015-10-17 08:04:32 +00:00
nxnfufunezn
72e0e59574
Updated librustc_lint/builtin.rs to use span_lint_note
2015-10-17 02:14:26 +05:30
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
ab671552c3
Refactor attr::Stability
...
Stricter checking + enforcement of invariants at compile time
2015-10-13 06:01:31 +03:00