Niko Matsakis
267574c8df
convert TODO in traits into a FIXME
2017-11-16 05:57:50 -05:00
Niko Matsakis
013f88b9fb
infer/outlives: add license
2017-11-16 05:57:47 -05:00
Niko Matsakis
b383ab79c9
update READMEs to describe the new situation
...
The inference README, in particular, was VERY out of date!
2017-11-16 05:57:47 -05:00
Niko Matsakis
4b743da596
integrate NLL with MIR type-checker
2017-11-16 05:57:47 -05:00
Niko Matsakis
d9e841e756
region_infer: improved debug logging
2017-11-16 05:57:47 -05:00
Niko Matsakis
32f964cc98
renumber: debug logs, use visit_region
rather than visit_rvalue
2017-11-16 05:57:47 -05:00
Niko Matsakis
12534e9159
renumber: handle ReturnTy better
2017-11-16 05:57:47 -05:00
Niko Matsakis
5592bb7c33
MIR-dump: print return type from local_decls for _0
...
We've kind of got the same information twice in the MIR, between the
return-type field and the local-decls. Seems un-great.
2017-11-16 05:57:46 -05:00
Niko Matsakis
8d3219ed5e
erase regions in MIR borrowck when checking if type moves by default
2017-11-16 05:57:46 -05:00
Niko Matsakis
ef392bc11b
simplify lifetime annotations for MirBorrowckCtxt
2017-11-16 05:57:46 -05:00
Niko Matsakis
51ce1f9493
formalize giving ownership of region vars to region inf. context
2017-11-16 05:57:46 -05:00
Niko Matsakis
109c9a79ed
infer: extract total number of region variables from infcx
...
We are heading towards deeper integration with the region inference
system in infcx; in particular, prior to the creation of the
`RegionInferenceContext`, it will be the "owner" of the set of region
variables.
2017-11-16 05:57:46 -05:00
Niko Matsakis
a87d1bbb93
infer: give access to region variable origins
2017-11-16 05:57:45 -05:00
Niko Matsakis
09b44bbe77
IndexVec: add '_
to make clear where borrowing is happening
2017-11-16 05:57:45 -05:00
Niko Matsakis
72675d82d7
replace RegionIndex
with RegionVid
(which now impls Idx)
2017-11-16 05:57:45 -05:00
Niko Matsakis
89c1b6009b
replace usize
with RegionIndex
in indices map
2017-11-16 05:57:45 -05:00
Niko Matsakis
ad93b695d1
MIR typeck: refactor to track region constraints
2017-11-16 05:57:45 -05:00
Niko Matsakis
37945fe3e8
MIR typeck: rustfmt
2017-11-16 05:57:44 -05:00
Niko Matsakis
034018cd90
rustfmt lexical_region_resolve
2017-11-16 05:57:44 -05:00
Niko Matsakis
1430a600de
add method take_and_reset_region_constraints
to InferCtxt
2017-11-16 05:57:44 -05:00
Niko Matsakis
1efcf1a115
split the var_origins
from the RegionConstraintData
2017-11-16 05:57:44 -05:00
Niko Matsakis
a8daa37df6
region_constraints: only push givens into undo-log if in a snapshot
2017-11-16 05:57:44 -05:00
Niko Matsakis
524e23ae2e
make RegionVid
implement Idx
and use IndexVec
2017-11-16 05:57:44 -05:00
Niko Matsakis
bea6b94273
fix error messages relating to removing lint for E0276
2017-11-16 05:57:44 -05:00
Niko Matsakis
f6037f2816
separate the Collector
from the Data
it is collecting
2017-11-16 05:57:43 -05:00
Niko Matsakis
adf1519941
make the region_constraints
field an Option
...
This way, we can `take()` ownership of it when we are going to resolve regions.
2017-11-16 05:57:43 -05:00
Niko Matsakis
326ec52eac
rename RegionVarBindings to RegionConstraintCollector
2017-11-16 05:57:43 -05:00
Niko Matsakis
48d8f7210b
infer: rename region_vars
field to region_constraints
2017-11-16 05:57:43 -05:00
Niko Matsakis
23abd85138
rename region_inference
module to region_constraints
2017-11-16 05:57:43 -05:00
Niko Matsakis
cff191d444
move refcells out from RegionVarBindings
and up into InferCtxt
2017-11-16 05:57:42 -05:00
Niko Matsakis
63d658d87c
extract the tcx
out from RegionVarBindings
2017-11-16 05:57:42 -05:00
Niko Matsakis
daceedf314
region_inference: rustfmt
2017-11-16 05:57:42 -05:00
Niko Matsakis
ec48b018d6
extract storage of region values from RegionVarBindings
2017-11-16 05:57:42 -05:00
Niko Matsakis
b76978530c
move RegionResolutionError
into lexical_region_resolve
2017-11-16 05:57:42 -05:00
Niko Matsakis
8e9e15446f
region_inference: extract taint into a sub-module
2017-11-16 05:57:41 -05:00
Niko Matsakis
9d63330b6d
region_inference: tighten up pub
, stop re-exporting enum variants
2017-11-16 05:57:41 -05:00
Niko Matsakis
ef5de07fc5
fix rename to block_data in type_check.rs
2017-11-16 05:57:34 -05:00
Marc-Antoine Perennou
98175892b0
rustbuild: make tidy happy
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-11-16 11:26:45 +01:00
Marc-Antoine Perennou
8f91a45e48
rustbuild: dist cargo-fmt as part of rustfmt
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-11-16 10:51:23 +01:00
Marc-Antoine Perennou
8cd5735503
rustbuild: use a macro to define "extended" tools
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-11-16 10:51:23 +01:00
Marc-Antoine Perennou
1930ee8b94
rustbuild: Install rustfmt as part of extended build
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-11-16 10:47:26 +01:00
Guillaume Gomez
d57fed893e
Rollup merge of #46010 - lnicola:escape-root, r=GuillaumeGomez
...
rustdoc: Escape doc root URLs
This fixes a small HTML injection issue.
2017-11-16 10:05:07 +01:00
Guillaume Gomez
b09af7064e
Rollup merge of #46005 - GuillaumeGomez:short-unstable, r=nrc
...
Set short-message feature unstable
Fixes #45995 .
r? @nrc
2017-11-16 10:05:06 +01:00
Guillaume Gomez
8debe610ee
Rollup merge of #45993 - QuietMisdreavus:anti-cow, r=kennytm
...
examples in Cow::into_owned don't need to wrap result in Cows
This totally confused me until i triple-checked the actual return value and opened the examples in the playground myself.
r? @rust-lang/docs
2017-11-16 10:05:05 +01:00
Guillaume Gomez
ed64b97d61
Rollup merge of #45984 - ExpHP:attr-error-context, r=estebank
...
Add context to E0084, E0517, E0518
A small diagnostic enhancement to get my feet wet. Please scrutinize!
This modifies errors E0084, E0517, and E0518 to include both the annotation and the annotated item. All of these errors already had labels; I moved the label to the other span, and rephrased it as necessary.
Fixes #45886
2017-11-16 10:05:04 +01:00
Guillaume Gomez
3c1ea047da
Rollup merge of #45973 - arielb1:fast-path, r=estebank
...
avoid the pprust infrastructure in macro expansion
This changes macro expansion to format the path of a macro directly
instead of usng the pprust infrastructure. The pprust infrastructure
tries to perform line-breaking in a slow fashion, which is undesired
when formatting the path of a macro.
This should to speed up expansion by a fair amount (I saw 20% on a
profiler on `rustc_mir`, and 50% of the time marked as "expansion" in
the profiler/time-passes is actually spent loading dependencies).
r? @jseyfried
2017-11-16 10:05:03 +01:00
Guillaume Gomez
387fa844bb
Rollup merge of #45951 - CrockAgile:master, r=michaelwoerister
...
incr: Update hash tests to use `except`-style checking
Part of #44924
r? @michaelwoerister
2017-11-16 10:05:02 +01:00
Oliver Schneider
20eb27ed92
Reenable Clippy
2017-11-16 09:35:53 +01:00
bors
edd9dbcdbb
Auto merge of #45985 - arielb1:unsafe-dedup, r=eddyb
...
check_unsafety: fix unused unsafe block duplication
The duplicate error message is later removed by error message
deduplication, but it still appears on beta and is still a bug.
r? @eddyb
2017-11-16 08:31:59 +00:00
Esteban Küber
f796fcd623
Point to ADT definition when not finding variant, method, assoc type
2017-11-15 23:24:58 -08:00