bors
5d04957a4b
Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakis
...
Stabilize or_patterns (RFC 2535, 2530, 2175)
closes #54883
This PR stabilizes the or_patterns feature in Rust 1.53.
This is blocked on the following (in order):
- [x] The crater run in https://github.com/rust-lang/rust/pull/78935#issuecomment-731564021
- [x] The resolution of the unresolved questions and a second crater run (https://github.com/rust-lang/rust/pull/78935#issuecomment-735412705 )
- It looks like we will need to pursue some sort of edition-based transition for `:pat`.
- [x] Nomination and discussion by T-lang
- [x] Implement new behavior for `:pat` based on consensus (https://github.com/rust-lang/rust/pull/80100 ).
- [ ] An FCP on stabilization
EDIT: Stabilization report is in https://github.com/rust-lang/rust/pull/79278#issuecomment-772815177
2021-03-22 19:48:27 +00:00
bstrie
567f0e1a39
Stabilize assoc_char_funcs
and assoc_char_consts
2021-03-19 20:35:08 -07:00
mark
db5629adcb
stabilize or_patterns
2021-03-19 19:45:32 -05:00
Mara Bos
cfb4ad4f2a
Remove unwrap_none/expect_none from compiler/.
2021-03-18 14:25:54 +01:00
Camille GILLOT
cdc0b199a9
Split DepKindStruct in two.
2021-02-19 17:51:56 +01:00
pierwill
51d1806545
docs: Fix outdated crate reference
2020-12-19 23:32:51 -08:00
LeSeulArtichaut
e0f3119103
Introduce TypeVisitor::BreakTy
2020-11-14 20:25:27 +01:00
Oliver Scherer
362123dd75
Split the "raw integer bytes" part out of Scalar
2020-11-04 09:58:59 +00:00
LeSeulArtichaut
2c85b6fae0
TypeVisitor: use std::ops::ControlFlow
instead of bool
2020-10-30 12:25:24 +01:00
Jubilee Young
0e88db7db4
Dogfood {exclusive,half-open} ranges in compiler (nfc)
...
In particular, this allows us to write more explicit matches that
avoid the pitfalls of using a fully general fall-through case, yet
remain fairly ergonomic. Less logic is in guard cases, more is in
the actual exhaustive case analysis.
No functional changes.
2020-10-28 20:09:20 -07:00
Erik Hofmayer
138a2e5eaa
/nightly/nightly-rustc
2020-09-23 21:51:56 +02:00
Erik Hofmayer
dd66ea2d3d
Updated html_root_url for compiler crates
2020-09-23 21:14:43 +02:00
Ralf Jung
50d56bc774
Rollup merge of #76825 - lcnr:array-windows-apply, r=varkor
...
use `array_windows` instead of `windows` in the compiler
I do think these changes are beautiful, but do have to admit that using type inference for the window length
can easily be confusing. This seems like a general issue with const generics, where inferring constants adds an additional
complexity which users have to learn and keep in mind.
2020-09-20 12:08:26 +02:00
Bastian Kauschke
3435683fd5
use array_windows
instead of windows
in the compiler
2020-09-20 08:11:05 +02:00
est31
ebdea01143
Remove redundant #![feature(...)] 's from compiler/
2020-09-17 07:58:45 +02:00
marmeladema
68500ffacb
datastructures: replace once_cell
crate with an impl from std
2020-08-30 20:06:14 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00