Ariel Ben-Yehuda
fb7ab9e43d
report the total number of errors on compilation failure
...
Prior to this PR, when we aborted because a "critical pass" failed, we
displayed the number of errors from that critical pass. While that's the
number of errors that caused compilation to abort in *that place*,
that's not what people really want to know. Instead, always report the
total number of errors, and don't bother to track the number of errors
from the last pass that failed.
This changes the compiler driver API to handle errors more smoothly,
and therefore is a compiler-api-[breaking-change].
Fixes #42793 .
2017-07-02 16:16:44 +03:00
Oliver Schneider
dd87eabd83
Remove need for &format!(...) or &&"" dances in span_label
calls
2017-05-08 12:56:15 +02:00
Niko Matsakis
f3b876c4b2
kill CheckStaticRecursion
2017-04-04 11:09:47 -04:00
Taylor Cramer
802a826a57
Stabilize static_recursion
2017-02-21 23:41:04 -08:00
Eduard-Mihai Burtescu
1ff3641623
rustc: don't call the HIR AST.
2017-01-26 13:41:28 +02:00
Eduard-Mihai Burtescu
e64f64a2fc
rustc: separate bodies for static/(associated)const and embedded constants.
2016-12-28 11:27:57 +02:00
Eduard-Mihai Burtescu
864928297d
rustc: separate TraitItem from their parent Item, just like ImplItem.
2016-12-28 11:21:45 +02:00
Mikhail Modin
b8d8ab87c0
fix stack overflow by enum and cont issue #36163 , some paths were skipped while checking for recursion.
2016-12-03 21:26:30 +03:00
Niko Matsakis
104125d5f7
revamp Visitor
with a single method for controlling nested visits
2016-11-29 13:04:27 +01:00
Florian Diebold
f0ce5bb66b
Split nested_visit_mode function off from nested_visit_map
...
... and make the latter mandatory to implement.
2016-11-29 13:04:27 +01:00
Florian Diebold
0389cc6bcd
rustc_passes: fix compilation
2016-11-29 13:04:27 +01:00
Eduard-Mihai Burtescu
962633cdbb
rustc: embed path resolutions into the HIR instead of keeping DefMap.
2016-11-28 04:18:10 +02:00
Eduard Burtescu
16b5c2cfef
rustc: desugar UFCS as much as possible during HIR lowering.
2016-11-28 04:18:10 +02:00
Niko Matsakis
36fbf8c53c
refactor Visitor into ItemLikeVisitor and intravisit::Visitor
...
There are now three patterns (shallow, deep, and nested visit). These
are described in detail on the docs in `itemlikevisit::ItemLikeVisitor`.
2016-11-16 13:51:36 -05:00
Vadim Petrochenkov
bd291ce21a
Turn some impossible definitions into ICEs
2016-10-04 22:25:25 +03:00
Vadim Petrochenkov
da7b1c984c
Separate Def::StructCtor/Def::VariantCtor from Def::Struct/Def::Variant
2016-10-04 22:20:37 +03:00
Tim Neumann
b0dba7439d
make emit_feature_err take a ParseSess
2016-09-26 07:07:41 +02:00
Eduard Burtescu
ef4352fba6
rustc_metadata: group information into less tags.
2016-09-20 20:08:04 +03:00
Mikhail Modin
507fe14637
update E0265 to new format
2016-08-30 22:46:52 +03:00
Srinivas Reddy Thatiparthy
a6c9404c29
run rustfmt on librustc_passes folder
2016-08-04 23:08:13 +05:30
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04: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
676f6c3116
librustc_passes: use bug!(), span_bug!()
2016-03-31 22:04:23 +02: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
Nick Cameron
b6e4f18e55
Replace some aborts with Results
...
Fixes #31207
by removing abort_if_new_errors
2016-02-01 08:42:27 +13:00
Oliver Schneider
c124deca7b
move more checks out of librustc
2016-01-21 10:52:37 +01:00