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
Mark Rousskov
a8e19bec37
Move span_bug and bug helper functions to util
2018-08-09 10:01:45 -06:00
Mark Rousskov
bd6fe1e700
Move Fingerprint to data structures
2018-08-09 10:00:25 -06:00
Mark Rousskov
e3177c6f3f
Move rustc::util::fs into separate (new) crate
2018-08-09 10:00:25 -06:00
memoryruins
ed55520371
[nll] librustc: enable feature(nll) for bootstrap
2018-08-09 09:20:41 -04:00
bors
45a9d410f9
Auto merge of #53016 - scottmcm:impl-header-lifetime-elision, r=nikomatsakis
...
Extract impl_header_lifetime_elision out of in_band_lifetimes
This way we can experiment with `impl Debug for &MyType` separately from `impl Debug for &'a MyType`.
I can't say I know what the code in here is doing, so please let me know if there's a better way 🙂
I marked this as enabled in 2018 so that edition code continues to work without another flag.
Actual feature PR https://github.com/rust-lang/rust/pull/49251 ; Tracking Issue https://github.com/rust-lang/rust/issues/15872 ; In-band lifetimes tracking issue https://github.com/rust-lang/rust/issues/44524 .
cc @aturon, per discussion on discord earlier
cc @cramertj & @nikomatsakis, who actually wrote these features
2018-08-06 21:45:32 +00:00
varkor
c81b95f305
Remove unnecessary feature attributes that sneaked in
2018-08-05 15:54:49 +01:00
varkor
5242dce01d
Add lint for unknown feature attributes
2018-08-05 15:54:49 +01:00
Scott McMurray
7398c3125b
Fix the stage1 build
2018-08-03 08:52:30 -07:00
Wesley Wiser
45482c6f99
Basic profiling
2018-08-02 18:57:24 -04:00
Mark Rousskov
f390917bc2
Move dataflow to borrowck
...
No one else uses it.
2018-07-31 18:05:51 -06:00
Oliver Schneider
9377041de9
Sanity-check all constants
2018-07-29 20:22:15 +02:00
bors
4f1e235744
Auto merge of #52336 - ishitatsuyuki:dyn-rollup, r=Mark-Simulacrum
...
Rollup of bare_trait_objects PRs
All deny attributes were moved into bootstrap so they can be disabled with a line of config.
Warnings for external tools are allowed and it's up to the tool's maintainer to keep it warnings free.
r? @Mark-Simulacrum
cc @ljedrz @kennytm
2018-07-27 20:27:40 +00:00
Tatsuyuki Ishi
e098985939
Deny bare_trait_objects globally
2018-07-25 10:25:29 +09:00
Niko Matsakis
a54401ebcc
implement Step for Idx types
...
This way, we can iterate over a `Range<T>` where `T: Idx`
2018-07-25 00:11:31 +03:00
ljedrz
48e501f378
Deny bare trait objects in in src/librustc
2018-07-11 12:05:10 +02:00
bjorn3
c504d26c1c
Move time_graph.rs to rustc/util
2018-07-07 10:52:31 +02:00
bors
48af7714d8
Auto merge of #51717 - Mark-Simulacrum:snap, r=alexcrichton
...
Bootstrap from 1.28.0 beta
2018-06-30 21:01:05 +00:00
Mark Simulacrum
ad97f8b491
Bootstrap from 1.28.0-beta.3
2018-06-30 13:17:49 -07:00
Oliver Schneider
05994779ea
Move everything over from middle::const_val to mir::interpret
2018-06-28 11:02:31 +02:00
Guillaume Gomez
861c7cb9fd
Stabilize entry-or-default
2018-06-10 12:59:12 +02:00
John Kåre Alsaker
f9e6fbc4f7
Make queries block and handle query cycles
2018-06-06 15:25:16 +02:00
Michael Woerister
24dfcbef9c
Make const decoding from the incremental cache thread-safe.
2018-06-01 09:32:24 +02:00
Niko Matsakis
69ab6f2995
introduce shifted_in, shifted_out and friends
...
Co-authored-by: csmoe <35686186+csmoe@users.noreply.github.com>
2018-05-28 14:25:55 -04:00
bors
68e0e58df7
Auto merge of #50612 - Zoxc:thin-slice, r=michaelwoerister
...
Make &Slice a thin pointer
Split out from https://github.com/rust-lang/rust/pull/50395
r? @michaelwoerister
2018-05-28 07:59:21 +00:00
Mark Mansi
0e53b78830
Make anon params lint warn-by-default
2018-05-27 14:08:45 -05:00
John Kåre Alsaker
6c2d875261
Make &Slice a thin pointer
2018-05-27 17:28:35 +02:00
kennytm
e667e7be60
Rollup merge of #51047 - spastorino:use_polonius_engine_facts, r=nikomatsakis
...
Use AllFacts from polonius-engine
2018-05-26 19:32:22 +08:00
bors
990d8aa743
Auto merge of #50967 - oli-obk:miri_api_refactor, r=eddyb
...
Miri api refactor
r? @eddyb
cc @Zoxc
based on https://github.com/rust-lang/rust/pull/50916
2018-05-25 13:59:48 +00:00
Santiago Pastorino
8429d11a0b
Use AllFacts from polonius-engine
2018-05-24 19:56:02 -03:00
Oliver Schneider
5c8741f32e
Use in-band-lifetimes instead of unused explicit lifetimes
2018-05-24 20:49:38 +02:00
Niko Matsakis
6f425a9201
implement the chalk traits, albeit with many placeholders
2018-05-24 12:01:27 -04:00