Mateusz Mikuła
87e4b43d51
Deny internal
in stage0
2019-04-17 05:15:00 +02:00
John Kåre Alsaker
e835d27ad3
Make ArenaAllocatable a marker trait to allow overlapping impls and use specialization to find the right field
2019-04-05 00:55:07 +02:00
John Kåre Alsaker
002c70f2d4
Introduce an arena type which may be used to allocate a list of types with destructors
2019-04-05 00:55:07 +02:00
flip1995
69f74df429
Deny internal lints in librustc
2019-04-03 18:24:21 +02:00
Jean-Marie Comets
70fa616a23
Stabilize refcell_replace_swap feature, closes #43570
2019-03-31 10:54:14 +02:00
varkor
abf5e81663
Use Ranges for vars_since_snapshot
2019-03-27 09:44:55 +00:00
John Kåre Alsaker
7d90547532
Define queries using a proc macro
2019-03-18 08:20:06 +01:00
Eduard-Mihai Burtescu
1a0f3a2856
rustc: streamline the Print/fmt::Display impls in ppaux and move them to ty::print::pretty.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
d0a1bf5c88
rustc: make util::ppaux private.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
08d27441ec
rustc: move the formatter into ty::print::PrintCx.
2019-03-15 09:26:13 +02:00
Wesley Wiser
4c8cc14186
Replace TimeLine with SelfProfiler
2019-03-10 11:10:55 -04:00
John Kåre Alsaker
12a491fbe2
Make rustc_macro a Rust 2018 crate
2019-03-05 20:46:45 +01:00
John Kåre Alsaker
97431a4090
Create a derive macro for HashStable
2019-03-05 00:36:20 +01:00
Mazdak Farrokhzad
235d3ed083
librustc: deny(elided_lifetimes_in_paths)
2019-02-25 09:19:20 +01:00
kennytm
f05e6bf708
Rollup merge of #58074 - scottmcm:stabilize-sort_by_cached_key, r=SimonSapin
...
Stabilize slice_sort_by_cached_key
I was going to ask on the tracking issue (https://github.com/rust-lang/rust/issues/34447 ), but decided to just send this and hope for an FCP here. The method was added last March by https://github.com/rust-lang/rust/pull/48639 .
Signature: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
```rust
impl [T] {
pub fn sort_by_cached_key<K, F>(&mut self, f: F)
where F: FnMut(&T) -> K, K: Ord;
}
```
That's an identical signature to the existing `sort_by_key`, so I think the questions are just naming, implementation, and the usual "do we want this?".
The implementation seems to have proven its use in rustc at least, which many uses: https://github.com/rust-lang/rust/search?l=Rust&q=sort_by_cached_key
(I'm asking because it's exactly what I just needed the other day:
```rust
all_positions.sort_by_cached_key(|&n|
data::CITIES.iter()
.map(|x| *metric_closure.get_edge(n, x.pos).unwrap())
.sum::<usize>()
);
```
since caching that key is a pretty obviously good idea.)
Closes #34447
2019-02-16 14:11:28 +08:00
Scott McMurray
3777b86f9b
Stabilize slice_sort_by_cached_key
2019-02-12 22:26:44 -08:00
Taiki Endo
3216c7656a
Rename rustc_errors dependency in rust 2018 crates
2019-02-13 00:28:52 +09:00
Guillaume Gomez
8b886e07f5
Remove images' url to make it work even without internet connection
2019-02-07 11:06:19 +01:00
Mark Mansi
e957ed9d10
move librustc to 2018
2019-02-05 12:45:47 -06:00
John Kåre Alsaker
975eb312ef
Use multiple threads by default. Limits tests to one thread. Do some renaming.
2019-01-28 16:24:33 +01:00
Mark Simulacrum
db97c48ad6
Remove quote_*! macros and associated APIs
2019-01-24 07:37:34 -07:00
Mazdak Farrokhzad
6d7a4a6e4c
stabilize transpose_result in 1.33
2019-01-13 06:15:44 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
John Kåre Alsaker
c66b84457f
Tweak query code for performance
2018-12-17 08:53:01 +01:00
Alexander Regueiro
ee89c088b0
Various minor/cosmetic improvements to code
2018-12-07 23:53:34 +00:00
Guillaume Gomez
2d3236c68f
Rollup merge of #56257 - mark-i-m:rustc-guide-links, r=nikomatsakis
...
rustc-guide has moved to rust-lang/
r? @nikomatsakis
2018-11-29 13:10:44 +01:00
Mark Mansi
59ae93daed
remove uses of feature gate
2018-11-27 13:13:11 -06:00
Mark Mansi
6494f1e60e
rustc-guide has moved
2018-11-26 15:03:13 -06:00
Alex Crichton
d0060d72e5
Bump nightly to 1.32.0
...
* Also update the bootstrap compiler
* Update cargo to 1.32.0
* Clean out stage0 annotations
2018-10-31 11:53:50 -07:00
Scott McMurray
37393576ec
Stabilize impl_header_lifetime_elision in 2015
...
It's already stable in 2018; this finishes the stabilization.
2018-10-19 21:57:52 -07:00
ljedrz
354a965ede
create only one vector when winnowing candidates
2018-10-14 17:20:45 +02:00
Oliver Schneider
ec74d3533a
Stabilize min_const_fn
2018-10-05 10:36:14 +02:00
Zack M. Davis
5b22d9b2ca
don't elide lifetimes in paths in librustc/
...
This seemed like a good way to kick the tires on the
elided-lifetimes-in-paths lint (#52069 )—seems to work! This was also
pretty tedious—it sure would be nice if `cargo fix` worked on this
codebase (#53896 )!
2018-09-29 21:48:29 -07:00
Josh Stone
ce034951fb
Bump to 1.31.0 and bootstrap from 1.30 beta
2018-09-27 20:52:53 -07:00
Eduard-Mihai Burtescu
fa2c246384
Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions.
2018-09-22 09:26:40 +03:00
bors
dfabe4b885
Auto merge of #54032 - oli-obk:layout_scalar_ranges, r=eddyb
...
Add forever unstable attribute to allow specifying arbitrary scalar ranges
r? @eddyb for the first commit and @nikomatsakis for the second one
2018-09-14 09:47:21 +00:00
toidiu
731f4efae5
stabalize infer outlives requirements (RFC 2093).
...
Co-authored-by: nikomatsakis
2018-09-11 11:40:04 -04:00
Oliver Schneider
06a041cbd3
Forbid the upper indices of IndexVec
indices to allow for niche optimizations
2018-09-11 11:25:28 +02:00
Oliver Schneider
d125e904b5
Restrict most uses of const_fn
to min_const_fn
2018-08-31 08:40:00 +02:00
bors
70a21e89f1
Auto merge of #53441 - toidiu:ak-fix53419, r=nikomatsakis
...
fix for late-bound regions
Fix for https://github.com/rust-lang/rust/issues/53419
r? @nikomatsakis
2018-08-27 17:42:45 +00:00
bors
af2be23fd1
Auto merge of #53385 - matklad:stabilize-find-map, r=KodrAus
...
Stablize Iterator::find_map
Stabilization PR for https://github.com/rust-lang/rust/issues/49602
2018-08-25 08:53:04 +00:00
Niko Matsakis
73fb1622b3
check that adding infer-outlives requirement to all crates works
2018-08-24 17:10:50 -04:00
bors
e5284b0b57
Auto merge of #53384 - gootorov:use-servo-smallvec, r=michaelwoerister
...
Use optimized SmallVec implementation
This PR replaces current SmallVec implementation with the one from the Servo project.
Closes https://github.com/rust-lang/rust/issues/51640
r? @Mark-Simulacrum
2018-08-23 14:40:22 +00:00
bors
35bf1ae257
Auto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakis
...
Implement try block expressions
I noticed that `try` wasn't a keyword yet in Rust 2018, so...
~~Fixes https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135
cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412
2018-08-23 11:46:24 +00:00
Igor Gutorov
4d81fe9243
Use optimized SmallVec implementation
2018-08-23 10:45:53 +03:00
Scott McMurray
9f683bed3d
Rename catch_expr
feature to try_blocks
2018-08-19 16:53:43 -07:00
Jakub Kozlowski
00920c0024
Stabilize macro_vis_matcher
2018-08-19 17:08:00 +01:00
Aleksey Kladov
057878ac71
Stablize Iterator::find_map
2018-08-15 18:44:44 +03:00
bors
fa23350a46
Auto merge of #52928 - Mark-Simulacrum:borrowck-cleanup, r=cramertj
...
(old) borrowck cleanup
Primarily moves dataflow code based on CFG to borrowck; this is mostly so we don't forget to delete it once it becomes unused after we fully move to MIR borrowck.
2018-08-15 00:37:52 +00:00
Guillaume Gomez
3e9a1a1b82
Rollup merge of #53230 - memoryruins:nll_bootstrap_4, r=nikomatsakis
...
[nll] enable feature(nll) on various crates for bootstrap: part 4
#53172
r? @nikomatsakis
2018-08-12 23:26:56 +02:00