Camille GILLOT
380ca0c9e6
Move THIR printing to rustc_mir_build.
2023-02-26 14:31:15 +00:00
David Wood
d1fcf61117
errors: generate typed identifiers in each crate
...
Instead of loading the Fluent resources for every crate in
`rustc_error_messages`, each crate generates typed identifiers for its
own diagnostics and creates a static which are pulled together in the
`rustc_driver` crate and provided to the diagnostic emitter.
Signed-off-by: David Wood <david.wood@huawei.com>
2023-02-22 09:15:53 +00:00
b-naber
9438126fd1
previous thir unpretty output through thir-flat
2023-01-26 23:39:57 +01:00
Scott McMurray
7d57685682
Also remove #![feature(control_flow_enum)]
where possible
2023-01-18 10:22:21 -08:00
mejrs
31c20210b9
Migrate pattern matching
2023-01-11 14:40:02 -08:00
TheOddGarlic
82f05446a5
Migrate "function cannot return without recursing" diagnostic
2022-12-17 19:08:24 +01:00
Oli Scherer
25c4760b5d
Some cleanup around trait_method lookup
2022-11-21 20:34:56 +00:00
Camille GILLOT
e828ce53b9
Skip chained OpaqueCast when building captures.
2022-10-09 16:18:16 +00:00
Pietro Albini
3975d55d98
remove cfg(bootstrap)
2022-09-26 10:14:45 +02:00
est31
173eb6f407
Only enable the let_else feature on bootstrap
...
On later stages, the feature is already stable.
Result of running:
rg -l "feature.let_else" compiler/ src/librustdoc/ library/ | xargs sed -s -i "s#\\[feature.let_else#\\[cfg_attr\\(bootstrap, feature\\(let_else\\)#"
2022-09-15 21:06:45 +02:00
Nilstrieb
d1ef8180f9
Revert let_chains stabilization
...
This reverts commit 3266460749
.
This is the revert against master, the beta revert was already done in #100538 .
2022-08-29 19:34:11 +02:00
Mark Rousskov
154a09dd91
Adjust cfgs
2022-08-12 16:28:15 -04:00
Caio
3266460749
Stabilize let_chains
2022-07-16 20:17:58 -03:00
Jacob Pratt
49c82f31a8
Remove crate
visibility usage in compiler
2022-05-20 20:04:54 -04:00
b-naber
96b36d6eb2
use GlobalId in eval_to_valtree query and introduce query for valtree_to_const_val
2022-05-16 15:58:15 +02:00
Yuki Okushi
da57b3a832
Rollup merge of #96628 - joshtriplett:stabilize-then-some, r=m-ou-se
...
Stabilize `bool::then_some`
FCP completed in https://github.com/rust-lang/rust/issues/80967
2022-05-05 10:20:35 +09:00
Josh Triplett
0fc5c524f5
Stabilize bool::then_some
2022-05-04 13:22:08 +02:00
Oli Scherer
db02e61038
Generate an intermediate temporary for Drop
constants.
...
To limit the fallout from this, don't do this for the last (or only) operand in an rvalue.
2022-05-04 09:09:52 +00:00
Caio
fe94f78b9b
6 - Make more use of let_chains
...
Continuation of #94376 .
cc #53667
2022-02-28 21:12:52 -03:00
Mark Rousskov
22c3a71de1
Switch bootstrap cfgs
2022-02-25 08:00:52 -05:00
lcnr
a1a30f7548
add a rustc::query_stability lint
2022-02-01 10:15:59 +01:00
PFPoitras
304ede6bcc
Stabilize iter::zip.
2021-12-14 18:50:31 -04: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
8b0b7ef812
Remove box syntax from rustc_mir_build
2021-08-18 09:25:26 +02:00
Smitty
e8165e7f1b
Support -Z unpretty=thir-tree again
2021-07-24 17:18:15 -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
bors
a7890c7952
Auto merge of #84985 - pietroalbini:bootstrap-1.54, r=Mark-Simulacrum
...
Bump bootstrap compiler to beta 1.53.0
This PR bumps the bootstrap compiler to version 1.53.0 beta, as part of our usual release process (this was supposed to be Wednesday's step, but creating the beta release took longer than expected).
The PR also includes the "Bootstrap: skip rustdoc fingerprint for building docs" commit, see the reasoning [on Zulip](https://zulip-archive.rust-lang.org/241545trelease/88450153betabootstrap.html ).
r? `@Mark-Simulacrum`
2021-05-25 05:48:00 +00:00
Pietro Albini
9e22b844dd
remove cfg(bootstrap)
2021-05-24 11:07:48 -04:00
LeSeulArtichaut
6f64eb1fe6
Make THIR building a stealable query
2021-05-22 14:36:22 +02:00
LeSeulArtichaut
29780f43e2
Introduce the (WIP) THIR unsafety checker
2021-05-11 15:33:00 +02:00
Ralf Jung
bd9556956a
fix feature use in rustc libs
2021-04-18 22:05:45 +02: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
LeSeulArtichaut
2a34428253
Make THIR data structures public
2021-03-11 19:42:39 +01:00
Nadrieril
1190e7275c
Cache head constructor in PatStack
...
Since the constructor is recomputed a lot, caching is worth it.
2020-10-27 00:46:32 +00:00
Bastian Kauschke
3435683fd5
use array_windows
instead of windows
in the compiler
2020-09-20 08:11:05 +02:00
Scott McMurray
fac272688e
Use ops::ControlFlow in graph::iterate
2020-09-04 01:45:10 -07:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00