summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2023-06-19Make closure_saved_names_of_captured_variables a query.Camille GILLOT-0/+2
2023-05-31Remove `lit_to_mir_constant` queryOli Scherer-1/+0
2023-05-15Move expansion of query macros in rustc_middle to rustc_middle::queryJohn Kåre Alsaker-1/+1
2023-04-20Remove WithOptconstParam.Camille GILLOT-1/+0
2023-04-18Add `rustc_fluent_macro` to decouple fluent from `rustc_macros`Nilstrieb-1/+1
Fluent, with all the icu4x it brings in, takes quite some time to compile. `fluent_messages!` is only needed in further downstream rustc crates, but is blocking more upstream crates like `rustc_index`. By splitting it out, we allow `rustc_macros` to be compiled earlier, which speeds up `x check compiler` by about 5 seconds (and even more after the needless dependency on `serde_json` is removed from `rustc_data_structures`).
2023-03-29Stabilize a portion of 'once_cell'Trevor Gross-1/+0
Move items not part of this stabilization to 'lazy_cell' or 'once_cell_try'
2023-03-11Simplify message pathsest31-1/+1
This makes it easier to open the messages file while developing on features. The commit was the result of automatted changes: for p in compiler/rustc_*; do mv $p/locales/en-US.ftl $p/messages.ftl; rmdir $p/locales; done for p in compiler/rustc_*; do sed -i "s#\.\./locales/en-US.ftl#../messages.ftl#" $p/src/lib.rs; done
2023-02-26Move THIR printing to rustc_mir_build.Camille GILLOT-2/+2
2023-02-22errors: generate typed identifiers in each crateDavid Wood-0/+5
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-01-26previous thir unpretty output through thir-flatb-naber-0/+1
2023-01-18Also remove `#![feature(control_flow_enum)]` where possibleScott McMurray-1/+0
2023-01-11Migrate pattern matchingmejrs-0/+1
2022-12-17Migrate "function cannot return without recursing" diagnosticTheOddGarlic-0/+1
2022-11-21Some cleanup around trait_method lookupOli Scherer-0/+1
2022-10-09Skip chained OpaqueCast when building captures.Camille GILLOT-0/+1
2022-09-26remove cfg(bootstrap)Pietro Albini-1/+0
2022-09-15Only enable the let_else feature on bootstrapest31-1/+1
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-08-29Revert let_chains stabilizationNilstrieb-0/+1
This reverts commit 326646074940222d602f3683d0559088690830f4. This is the revert against master, the beta revert was already done in #100538.
2022-08-12Adjust cfgsMark Rousskov-1/+0
2022-07-16Stabilize `let_chains`Caio-1/+1
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+0
2022-05-16use GlobalId in eval_to_valtree query and introduce query for ↵b-naber-0/+1
valtree_to_const_val
2022-05-05Rollup merge of #96628 - joshtriplett:stabilize-then-some, r=m-ou-seYuki Okushi-1/+0
Stabilize `bool::then_some` FCP completed in https://github.com/rust-lang/rust/issues/80967
2022-05-04Stabilize `bool::then_some`Josh Triplett-1/+0
2022-05-04Generate an intermediate temporary for `Drop` constants.Oli Scherer-0/+1
To limit the fallout from this, don't do this for the last (or only) operand in an rvalue.
2022-02-286 - Make more use of `let_chains`Caio-3/+4
Continuation of #94376. cc #53667
2022-02-25Switch bootstrap cfgsMark Rousskov-1/+1
2022-02-01add a rustc::query_stability lintlcnr-0/+1
2021-12-14Stabilize iter::zip.PFPoitras-1/+0
2021-10-28Revert "Add rustc lint, warning when iterating over hashmaps"Mark Rousskov-1/+0
2021-10-24Rollup merge of #89558 - lcnr:query-stable-lint, r=estebankMatthias Krüger-0/+1
Add rustc lint, warning when iterating over hashmaps r? rust-lang/wg-incr-comp
2021-10-16Adopt let_else across the compilerest31-0/+1
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-15allow `potential_query_instability` everywherelcnr-0/+1
2021-08-18Remove box syntax from rustc_mir_buildest31-1/+0
2021-07-24Support -Z unpretty=thir-tree againSmitty-0/+1
2021-05-31Remove unused feature gatesbjorn3-3/+0
2021-05-26Specialize implementationsJacob Pratt-0/+2
Implementations in stdlib are now optimized as they were before.
2021-05-25Auto merge of #84985 - pietroalbini:bootstrap-1.54, r=Mark-Simulacrumbors-1/+0
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-24remove cfg(bootstrap)Pietro Albini-1/+0
2021-05-22Make THIR building a stealable queryLeSeulArtichaut-0/+1
2021-05-11Introduce the (WIP) THIR unsafety checkerLeSeulArtichaut-0/+3
2021-04-18fix feature use in rustc libsRalf Jung-1/+0
2021-03-26Use iter::zip in compiler/Josh Stone-0/+1
2021-03-19stabilize or_patternsmark-1/+1
2021-03-11Make THIR data structures publicLeSeulArtichaut-1/+1
2020-10-27Cache head constructor in PatStackNadrieril-0/+1
Since the constructor is recomputed a lot, caching is worth it.
2020-09-20use `array_windows` instead of `windows` in the compilerBastian Kauschke-1/+1
2020-09-04Use ops::ControlFlow in graph::iterateScott McMurray-0/+1
2020-08-30mv compiler to compiler/mark-0/+29