PFPoitras
304ede6bcc
Stabilize iter::zip.
2021-12-14 18:50:31 -04:00
LegionMammal978
375524014f
Remove in_band_lifetimes from rustc_infer
...
This crate actually had a typo `'ctx` in one of its functions:
```diff
-pub fn same_type_modulo_infer(a: Ty<'tcx>, b: Ty<'ctx>) -> bool {
+pub fn same_type_modulo_infer<'tcx>(a: Ty<'tcx>, b: Ty<'tcx>) -> bool {
```
2021-12-13 17:53:27 -05:00
Alan Egerton
bfc434b6d0
Reduce boilerplate around infallible folders
2021-12-02 16:14:16 +00:00
LeSeulArtichaut
30bf20a692
Unwrap the results of type folders
...
Co-authored-by: Alan Egerton <eggyal@gmail.com>
2021-11-26 07:38:25 +00:00
Jacob Pratt
7b103e7dd2
Use derive_default_enum in the compiler
2021-11-22 20:17:53 -05:00
Mark Rousskov
3215eeb99f
Revert "Add rustc lint, warning when iterating over hashmaps"
2021-10-28 11:01:42 -04:00
Matthias Krüger
87822b27ee
Rollup merge of #89558 - lcnr:query-stable-lint, r=estebank
...
Add rustc lint, warning when iterating over hashmaps
r? rust-lang/wg-incr-comp
2021-10-24 15:48:42 +02:00
est31
1418df5888
Adopt let_else across the compiler
...
This performs a substitution of code following the pattern:
let <id> = if let <pat> = ... { identity } else { ... : ! };
To simplify it to:
let <pat> = ... { identity } else { ... : ! };
By adopting the let_else feature.
2021-10-16 07:18:05 +02:00
lcnr
00e5abe9b6
allow potential_query_instability everywhere
2021-10-15 10:58:18 +02:00
est31
15672dc695
Remove box syntax from rustc_infer
2021-08-18 09:25:26 +02:00
jackh726
22fc7d6e5a
Point to where clause for GATs
2021-08-13 17:07:56 -04:00
bjorn3
312f964478
Remove unused feature gates
2021-05-31 13:55:43 +02:00
Jacob Pratt
bc2f0fb5a9
Specialize implementations
...
Implementations in stdlib are now optimized as they were before.
2021-05-26 18:07:09 -04:00
Pietro Albini
9e22b844dd
remove cfg(bootstrap)
2021-05-24 11:07:48 -04:00
Ralf Jung
bd9556956a
fix feature use in rustc libs
2021-04-18 22:05:45 +02:00
pierwill
0019ca9141
Fix outdated crate names in compiler docs
...
Changes `librustc_X` to `rustc_X`, only in documentation comments.
Plain code comments are left unchanged.
Also fix incorrect file paths.
2021-04-08 11:12:14 -05:00
Josh Stone
72ebebe474
Use iter::zip in compiler/
2021-03-26 09:32:31 -07:00
mark
db5629adcb
stabilize or_patterns
2021-03-19 19:45:32 -05:00
Harald van Dijk
95e096d623
Change x64 size checks to not apply to x32.
...
Rust contains various size checks conditional on target_arch = "x86_64",
but these checks were never intended to apply to
x86_64-unknown-linux-gnux32. Add target_pointer_width = "64" to the
conditions.
2021-03-06 16:02:48 +00:00
LeSeulArtichaut
4fe735b320
TypeVisitor: use ControlFlow in rustc_{infer,lint,trait_selection}
2020-10-30 12:27:34 +01: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
est31
ebdea01143
Remove redundant #![feature(...)] 's from compiler/
2020-09-17 07:58:45 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00