Oliver Schneider
d09220de13
rename ast::ImplItem_::*ImplItem to ast::ImplItemKind::*
2015-11-16 10:35:30 +01: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
bf78389656
Auto merge of #29828 - sanxiyn:check-macro, r=nrc
...
Fix #27409 .
2015-11-16 05:48:35 +00:00
bors
531b0539b7
Auto merge of #29788 - mitaa:module_name, r=arielb1
...
f357d55 caused a regression by retrieving item names from metadata, while previously using the last element of its absolute path (which in the case of a root module is the prefixed crate name since the stored path in metadata is empty)
fixes #28927
2015-11-15 23:58:26 +00:00
bors
b7845f93b5
Auto merge of #29387 - little-dude:rustfmt_librustc_resolve, r=nrc
...
Another rustfmt PR.
I ran rustfmt, then split the changes in multiple commits. First commit are the non-problematic changed. The others are all the little weirdness that caught my attention and could be discussed.
2015-11-15 22:07:12 +00:00
bors
19abaf807d
Auto merge of #29836 - eefriedman:normalize-fn, r=arielb1
...
Fixes #23406 .
Fixes #23958 .
Fixes #29832 .
CC @arielb1
2015-11-15 20:19:57 +00:00
bors
e4309c2db6
Auto merge of #29209 - arielb1:exponential-evaluation, r=nmatsakis
...
This fixes an exponential worst-case and also provides an additional 1% perf improvement.
r? @nikomatsakis
2015-11-15 18:26:18 +00:00
Ariel Ben-Yehuda
5982594c7e
address review comments
2015-11-15 20:11:42 +02:00
Ariel Ben-Yehuda
f921982e60
fix pretty
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
4a16b562a8
fix remaining bugs
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
c998057770
add a global evaluation cache
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
8943d5a4a4
introduce evaluate_obligation_conservatively and use it
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
9c6d35d037
evaluate projections outside the outer probe in recursive evaluation
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
f37b4fe84f
put projections in RFC447 order
2015-11-15 19:22:32 +02:00
Ariel Ben-Yehuda
a43533a1f5
simplify and reduce the size of EvaluationResult
2015-11-15 19:22:32 +02:00
bors
68f8122309
Auto merge of #29846 - JanLikar:#29823, r=steveklabnik
...
Fix #29823 by further explaining `&str` and pointing out the
difference between `&str` and `&'static str`.
2015-11-15 15:33:23 +00:00
Jan Likar
8bcbcae866
Fix a typo
2015-11-15 14:21:13 +01:00
Jan Likar
235aca56b5
Improve Strings chapter
2015-11-15 08:14:46 +01:00
Jan Likar
2b05fdb38a
Update 'Strings' chapter of the book
...
Fix #29823 by further explaining `&str` and pointing out the
difference between `&str` and `&'static str`.
2015-11-15 06:55:30 +01:00
Jonathan S
d842a54b25
Stop using dynamic borrowing in MoveErrorCollector
2015-11-14 17:39:15 -06:00
Eli Friedman
82ab7079dd
Consistently normalize fn types after erasing lifetimes.
...
Fixes #23406 .
Fixes #23958 .
Fixes #29832 .
2015-11-14 14:47:49 -08:00
corentih
889b0e9ace
rustfmt librustc_resolve
2015-11-14 16:21:30 +01:00
bors
4f5edf9e38
Auto merge of #29827 - Manishearth:diag-fn-field, r=eddyb
...
Fixes #29043
2015-11-14 12:02:20 +00:00
Seo Sanghyeon
cce7b8bd25
Check macro definition and do not expand invalid macros
2015-11-14 19:50:46 +09:00
Seo Sanghyeon
289b1b400a
Reindent code
2015-11-14 19:18:32 +09:00
Seo Sanghyeon
fdadba5786
Store TokenTree in MacroRulesMacroExpander
2015-11-14 19:11:40 +09:00
Manish Goregaokar
2b3117cabf
Fix diagnostics for calling indirect extern function pointer field
...
Fixes #29043
2015-11-14 15:34:17 +05:30
bors
968e8bf213
Auto merge of #29819 - mdinger:block-comments, r=steveklabnik
...
These really aren't documented well at all. The fact that doc comments end on a `*/` is really weird. I'm not sure if this is a mistake or not though.
None of the block comments are even mentioned in the [book nightly](http://doc.rust-lang.org/nightly/book/comments.html ). Probably should be fixed.
2015-11-14 09:55:32 +00:00
bors
929ca3cb51
Auto merge of #29825 - KyleMayes:move-parse-panic, r=sanxiyn
...
Since these functions are only used by the AST quoting syntax extensions, they should be there instead of in the parser.
2015-11-14 08:03:14 +00:00
bors
45087f36ce
Auto merge of #29817 - michaelwoerister:mir-ty-closure-fields, r=nikomatsakis
...
Add a missing case in LvalueTy::projection_ty() that popped up earlier today.
cc @rust-lang/compiler @nikomatsakis
2015-11-14 06:08:09 +00:00
Kyle Mayes
44d8abcc0f
Move the panicking parse functions out of the parser
...
Since these functions are only used by the AST quoting syntax extensions, they should be there instead of in the parser.
2015-11-13 22:18:59 -05:00
bors
b6b17c9899
Auto merge of #29816 - nikomatsakis:incr-comp-visitor-refactor-hir-folder, r=nrc
...
Simplify HIR folder so that it only maps 1 item to 1 item, removing a bunch of asserts. This is a small refactoring on the way to my larger branch for moving items out of line in the tree and isolating attempts to access them.
r? @nrc
2015-11-14 02:05:05 +00:00
Niko Matsakis
37795baf5f
simplify HIR folder so that it only maps 1 item to 1 item,
...
removing a bunch of asserts
2015-11-13 20:22:07 -05:00
bors
bdfb13518e
Auto merge of #29781 - arielb1:mir-casts, r=nikomatsakis
...
I am also planning to implement casts, but I will probably do it in a separate PR.
r? @nikomatsakis
2015-11-14 00:10:28 +00:00
bors
c10569cac5
Auto merge of #29808 - aphistic:trait-debug-example-fix, r=steveklabnik
...
The example given for the manual implementation of the core::fmt::Debug trait doesn't match the output after the code sample. This updates it so it matches.
2015-11-13 22:12:51 +00:00
Ariel Ben-Yehuda
b9b45a0e96
address review comments
2015-11-14 00:09:36 +02:00
Ariel Ben-Yehuda
e82f5d4f54
implement coercions in MIR
2015-11-14 00:09:36 +02:00
mdinger
4e74f9b874
Document block doc comments better
2015-11-13 16:06:00 -05:00
Ariel Ben-Yehuda
cd1585ffb3
rustc_mir: don't miss the autoref when doing an unsize
2015-11-13 22:47:02 +02:00
Ariel Ben-Yehuda
c1bfd0ca6b
implement lvalue_len
...
no tests - sorry
2015-11-13 22:47:02 +02:00
Ariel Ben-Yehuda
dcb64b52a2
represent fat ptr operands as 2 separate pointers
...
this does add some complexity, but to do otherwise would require unsized
lvalues to have their own allocas, which would be ugly.
2015-11-13 22:47:02 +02:00
Ariel Ben-Yehuda
602cf7ec3c
MIR: implement fat raw pointer comparisons
...
The implementation itself only requires changes to trans, but
a few additional bugs concerning the handling of fat pointers
had to be fixed.
2015-11-13 22:47:02 +02:00
bors
5f2ffe0066
Auto merge of #29806 - tsion:compile-state-mir_map, r=nikomatsakis
...
This allows "rustc drop-in replacement" programs like https://github.com/nrc/stupid-stats to access the MIR map.
Working toy example: https://gist.github.com/tsion/288423389e32eb73bb39
r? @nikomatsakis
2015-11-13 20:18:18 +00:00
bors
3beb159809
Auto merge of #29759 - nagisa:mir-static, r=nikomatsakis
...
Fixes #29578
r? @nikomatsakis
My own observations are posted inline as comments.
2015-11-13 17:10:25 +00:00
Michael Woerister
9211883e54
MIR: Support closure up-vars in LvalueTy::projection_ty()
2015-11-13 17:01:37 +01:00
bors
ec8ae4b0eb
Auto merge of #29811 - bluss:binary-heap-sift-less, r=gankro
...
BinaryHeap: Simplify sift down
Sift down was doing all too much work: it can stop directly when the
current element obeys the heap property in relation to its children.
In the old code, sift down didn't compare the element to sift down at
all, so it was maximally sifted down and relied on the sift up call to
put it in the correct location.
This should speed up heapify and .pop().
Also rename Hole::removed() to Hole::element()
2015-11-13 14:28:57 +00:00
Ulrik Sverdrup
81fcdd4af9
BinaryHeap: Simplify sift down
...
Sift down was doing all too much work: it can stop directly when the
current element obeys the heap property in relation to its children.
In the old code, sift down didn't compare the element to sift down at
all, so it was maximally sifted down and relied on the sift up call to
put it in the correct location.
This should speed up heapify and .pop().
Also rename Hole::removed() to Hole::element()
2015-11-13 13:13:23 +01:00
bors
b12a3582b1
Auto merge of #29761 - eefriedman:rename-nopanic, r=sanxiyn
...
Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more
readable.
2015-11-13 10:28:25 +00:00
bors
82251354ff
Auto merge of #29800 - Detegr:master, r=nikomatsakis
...
Fundamental attribute was missing a feature gate test.
2015-11-13 08:41:50 +00:00