Niko Matsakis
5001c92c3e
stop hashing nested items, and add a test
2016-08-09 20:28:45 -04:00
Niko Matsakis
775bd93d72
make it possible to test if HIR is dirty
...
This requires passing in the dirty-node set explicitly since HIR nodes
wind up added to the graph either way.
2016-08-09 20:28:45 -04:00
bors
e1d2bc2916
Auto merge of #35166 - nikomatsakis:incr-comp-ice-34991-2, r=mw
...
Address ICEs running w/ incremental compilation and building glium
Fixes for various ICEs I encountered trying to build glium with incremental compilation enabled. Building glium now works. Of the 4 ICEs, I have test cases for 3 of them -- I didn't isolate a test for the last commit and kind of want to go do other things -- most notably, figuring out why incremental isn't saving much *effort*.
But if it seems worthwhile and I can come back and try to narrow down the problem.
r? @michaelwoerister
Fixes #34991
Fixes #32015
2016-08-09 10:00:54 -07:00
Niko Matsakis
e0b82d5c3a
fix license
2016-08-09 12:43:59 -04:00
Niko Matsakis
76eecc733c
pacify the mercilous tidy
2016-08-09 10:25:36 -04:00
bors
f0139140f6
Auto merge of #35426 - frewsxcv:os-sys-env-args-phantoms, r=alexcrichton
...
Utilize `PhantomData` to enforce `!Sync` and `!Send` field.
None
2016-08-09 05:26:50 -07:00
Niko Matsakis
ecbcf1b1b5
address comments from mw
2016-08-09 08:26:07 -04:00
Niko Matsakis
02a47032dd
use preds to serialize just what we need
...
This massively speeds up serialization. It also
seems to produce deterministic metadata hashes
(before I was seeing inconsistent results).
Fixes #35232 .
2016-08-09 08:26:06 -04:00
Niko Matsakis
9978cbc8f4
generalize BitMatrix to be NxM and not just NxN
2016-08-09 08:26:06 -04:00
Niko Matsakis
8150494ac2
add a deterministic_hash
method to DefPath
...
Produces a deterministic hash, at least for a single platform /
compiler-version.
2016-08-09 08:26:06 -04:00
Niko Matsakis
d4bd0544ca
add a -Z incremental-info
flag
2016-08-09 08:26:06 -04:00
Niko Matsakis
571010bb52
replace Name with InternedString in DefPathData
...
Fixes #35292 .
2016-08-09 08:26:06 -04:00
Niko Matsakis
a92b1a7981
make DepNode PartialOrd
2016-08-09 08:26:06 -04:00
Niko Matsakis
0e97240f98
isolate predecessor computation
...
The new `Predecessors` type computes a set of interesting targets and
their HIR predecessors, and discards everything in between.
2016-08-09 08:26:05 -04:00
bors
c2b03f8ba9
Auto merge of #35425 - apasel422:refcell, r=alexcrichton
...
Implement `RefCell::{try_borrow, try_borrow_mut}`
CC #35070
r? @alexcrichton
2016-08-09 02:11:50 -07:00
bors
58c5716e2d
Auto merge of #34762 - creativcoder:slice-ext, r=alexcrichton
...
extend lifetime on binary_search_by_key of SliceExt trait
Fixes #34683 .
2016-08-08 21:51:01 -07:00
Andrew Paseltiner
a20a1db54a
Implement RefCell::{try_borrow, try_borrow_mut}
2016-08-08 23:59:56 -04:00
Niko Matsakis
82b6dc20d8
fixup tests for new def'n of InlinedItem
...
it now carries a def-id; supply a dummy
2016-08-08 21:35:07 -04:00
Niko Matsakis
8fdc72f830
track MIR through the dep-graph
...
Per the discussion on #34765 , we make one `DepNode::Mir` variant and use
it to represent both the MIR tracking map as well as passes that operate
on MIR. We also track loads of cached MIR (which naturally comes from
metadata).
Note that the "HAIR" pass adds a read of TypeckItemBody because it uses
a myriad of tables that are not individually tracked.
2016-08-08 18:44:24 -04:00
Niko Matsakis
88b2e9a66d
rename KrateInfo to CrateInfo
2016-08-08 18:41:58 -04:00
bors
080e0e072f
Auto merge of #35064 - pthariensflame:feature/cow_str_from_iter, r=alexcrichton
...
Add `FromIterator` implementations for `Cow<str>`
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
2016-08-08 14:59:30 -07:00
Rahul Sharma
6fd1752b25
extend lifetime on binary_search_by_key of SliceExt trait
2016-08-09 00:32:35 +05:30
bors
f84008b558
Auto merge of #35492 - jonathandturner:fix_nightlies, r=arielb1
...
Fix for nightlies
Remove the NOTE tests for now so that nightlies will pass. We'll move many of these tests to UI tests later, as this is a better place to check the notes.
cc @alexcrichton
2016-08-08 11:17:05 -07:00
Jonathan Turner
5f1c6a0076
Remove the NOTE tests for now. We'll move to UI tests later
2016-08-08 09:26:32 -07:00
bors
b42a384a80
Auto merge of #35456 - birkenfeld:issue-33784, r=nikomatsakis
...
typeck: suggest (x.field)(...) to call struct fields even when x is a reference
Fixes : #33784
Note: This is a reopen of #33785 .
2016-08-08 07:47:51 -07:00
bors
8a4641bbdf
Auto merge of #35485 - KiChjang:e0004-bonus, r=GuillaumeGomez
...
Lengthen the span label to include match and expr for E0004
Part of #35233 .
Extension of #35191 .
r? @GuillaumeGomez
2016-08-08 03:35:19 -07:00
Keith Yeung
06133c50f7
Lengthen the span label to include match and expr for E0004
2016-08-07 22:25:04 -07:00
bors
6153bbbe38
Auto merge of #35402 - KiChjang:e0206-new-msg, r=GuillaumeGomez
...
Update E0206 message to new format
Part of #35233 .
Fixes #35301 .
r? @GuillaumeGomez
2016-08-07 17:31:55 -07:00
Keith Yeung
53baa09bfe
Update E0206 message to new format
2016-08-07 15:35:39 -07:00
Alexander Altman
42e64bc5f2
Add FromIterator
implementations for Cow<str>
...
This seems like an oversight, since the corresponding implementation for `Cow<[T]> where T: Clone` exists.
2016-08-07 13:41:31 -07:00
bors
1744c46e47
Auto merge of #35469 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 21 pull requests
- Successful merges: #35314 , #35355 , #35357 , #35366 , #35394 , #35410 , #35411 , #35413 , #35417 , #35419 , #35421 , #35429 , #35433 , #35434 , #35436 , #35439 , #35443 , #35454 , #35455 , #35467 , #35468
- Failed merges: #35395 , #35415
2016-08-07 10:52:23 -07:00
Jonathan Turner
995eeb02ca
Rollup merge of #35468 - munyari:e0205, r=jonathandturner
...
Update E0205 to the new error format
Part of #35233
Addresses #35382
"r? @jonathandturner
2016-08-07 09:59:45 -07:00
Jonathan Turner
8bd8cef318
Rollup merge of #35467 - terrynsun:master, r=jonathandturner
...
Update E0116 to new error code format.
Fixes #35249 as part of #35233 .
r? @jonathandturner
2016-08-07 09:59:44 -07:00
Jonathan Turner
cfebba5be3
Rollup merge of #35455 - munyari:e0204, r=jonathandturner
...
Update E0204 to the new error format
Part of #35233
Addresses #35381
"r? @jonathandturner
2016-08-07 09:59:44 -07:00
Jonathan Turner
fe7b3ae13b
Rollup merge of #35454 - Detegr:master, r=jonathandturner
...
New error message format for E0117 and E0118
Part of #35233
r? @jonathandturner
2016-08-07 09:59:44 -07:00
Jonathan Turner
a6cf011334
Rollup merge of #35443 - franleplant:master, r=jonathandturner
...
Update E0101 and E0102 to new format
Part of #35233
Fixes #35243
Fixes #35244
r? @jonathandturner
PS: My first contribution
2016-08-07 09:59:44 -07:00
Jonathan Turner
7d9ea8b371
Rollup merge of #35439 - pcn:update-E0010-error-message, r=jonathandturner
...
Update E0010 to use the new format
For https://github.com/rust-lang/rust/issues/35194
2016-08-07 09:59:44 -07:00
Jonathan Turner
3917d0e033
Rollup merge of #35436 - frewsxcv:into-vec, r=GuillaumeGomez
...
Add doc example for `std::ffi::NulError::into_vec`.
None
2016-08-07 09:59:44 -07:00
Jonathan Turner
87e129ee69
Rollup merge of #35434 - intrepion:fix-compile-fail-e0121, r=jonathandturner
...
Fixing compiler error E0121
Fixes #35254 and part of #35233
2016-08-07 09:59:43 -07:00
Jonathan Turner
56ffcbd321
Rollup merge of #35433 - mneumann:dragonfly-fix-libstd-errno-location, r=alexcrichton
...
Fix build on DragonFly (unused function errno_location)
Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
2016-08-07 09:59:43 -07:00
Jonathan Turner
9151431fd4
Rollup merge of #35429 - frewsxcv:tracking-is-empty, r=apasel422
...
Indicate tracking issue for `exact_size_is_empty` unstability.
https://github.com/rust-lang/rust/issues/35428
2016-08-07 09:59:43 -07:00
Jonathan Turner
6bb7f354c1
Rollup merge of #35421 - razielgn:updated-e0225-to-new-format, r=jonathandturner
...
Updated E0225 to new format.
Part of #35233 .
Fixes #35388 .
r? @jonathandturner
2016-08-07 09:59:43 -07:00
Jonathan Turner
c92ca5f585
Rollup merge of #35419 - Keats:err-243, r=jonathandturner
...
Update error message for E0243 and E0244
Fixes #35389 and #35390 as part of #35233 .
r? @jonathandturner
2016-08-07 09:59:43 -07:00
Jonathan Turner
d4ed060a8f
Rollup merge of #35417 - Limeth:master, r=jonathandturner
...
E0131 updated to new format
Changes
```
error[E0131]: main function is not allowed to have type parameters
--> src/test/compile-fail/E0131.rs:11:1
|
11 | fn main<T>() { //~ ERROR E0131
| ^
```
to
```
error[E0131]: main function is not allowed to have type parameters
--> src/test/compile-fail/E0131.rs:11:1
|
11 | fn main<T>() { //~ ERROR E0131
| ^^^ main cannot have type parameters
```
Fixes #35257 . Part of #35233 .
r? @jonathandturner
2016-08-07 09:59:42 -07:00
Jonathan Turner
02971961c7
Rollup merge of #35413 - silenuss:e0029-formatting, r=jonathandturner
...
Update compiler error 0029 to use new error format.
Part of #35233 ,
Addresses #35201
r? @jonathandturner
2016-08-07 09:59:42 -07:00
Jonathan Turner
7e37442720
Rollup merge of #35411 - KiChjang:e0223-new-format, r=jonathandturner
...
Update E0223 to the new format
Part of #35233 .
Fixes #35387 .
r? @jonathandturner
2016-08-07 09:59:42 -07:00
Jonathan Turner
4df58252bf
Rollup merge of #35410 - silenuss:e0027-formatting, r=jonathandturner
...
Update compiler error 0027 to use new error format.
Part of #35233 ,
Addresses #35200
r? @jonathandturner
2016-08-07 09:59:42 -07:00
Jonathan Turner
46392c8076
Rollup merge of #35394 - mikhail-m1:master, r=jonathandturner
...
Update error format #35304
Fixes #35304 as part of #35233 .
r? @jonathandturner
2016-08-07 09:59:41 -07:00
Jonathan Turner
94cb842887
Rollup merge of #35366 - medzin:E0282, r=jonathandturner
...
Updated error message E0282
Fixes #35312 as part of #35233 .
r? @GuillaumeGomez
2016-08-07 09:59:41 -07:00
Jonathan Turner
b69b2dbeb1
Rollup merge of #35357 - shri3k:E0040, r=jonathandturner
...
Updates compiler error E0040 with new format
Addresses #35208 as part of #35233 .
r? @GuillaumeGomez
2016-08-07 09:59:41 -07:00