Douglas Campos
24fc50fffa
make it not to be a method
2017-09-29 22:34:46 -04:00
Douglas Campos
baa010561e
copy resolve() over to librustc
2017-09-29 22:34:45 -04:00
scalexm
f7964aebe5
Implement Copy/Clone for closures
2017-09-20 20:43:41 +02:00
Douglas Campos
d3bbce79d0
bring TyCtxt into scope
2017-09-13 23:00:17 -04:00
scalexm
4e4e55aa77
Rename BuiltinShim -> CloneShim
2017-08-14 15:07:21 +02:00
scalexm
0c3ac648f8
Make Clone a lang item and generate builtin impls.
...
Fixes #28229 .
Fixes #24000 .
2017-08-14 15:07:21 +02:00
Michael Woerister
e00bec2dd4
Allow 'tcx in define_dep_nodes! and deduplicate some DepNodes.
2017-07-10 12:20:56 +02:00
Michael Woerister
3607174909
incr.comp.: Uniformly represent DepNodes as (Kind, StableHash) pairs.
2017-06-09 15:03:34 +02:00
Eduard-Mihai Burtescu
612bb1f54e
rustc: rename some of the queries to match tcx methods.
2017-04-24 15:20:52 +03:00
Ariel Ben-Yehuda
ece6c8434b
cache attributes of items from foreign crates
...
this avoids parsing item attributes on each call to `item_attrs`, which takes
off 33% (!) of translation time and 50% (!) of trans-item collection time.
2017-04-22 21:00:50 +03:00
Ariel Ben-Yehuda
f2c7917402
translate drop glue using MIR
...
Drop of arrays is now translated in trans::block in an ugly way that I
should clean up in a later PR, and does not handle panics in the middle
of an array drop, but this commit & PR are growing too big.
2017-03-18 02:53:08 +02:00
Ariel Ben-Yehuda
e1f3c67cb4
translate closure shims using MIR
2017-03-18 02:53:07 +02:00
Ariel Ben-Yehuda
aac5ba5dab
resolve instances to ty::Instance directly
...
This removes the duplication between collector, callee, and (eventually)
MIRI.
2017-03-18 02:53:07 +02:00
Ariel Ben-Yehuda
ffee9566bb
move Instance to rustc and use it in the collector
2017-03-18 02:53:04 +02:00