about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/lib.rs
AgeCommit message (Collapse)AuthorLines
2022-09-05Make `hir::PathSegment::res` non-optional.Nicholas Nethercote-3/+5
2022-09-02Refactor and re-use BindingAnnotationCameron Steffen-4/+3
2022-09-01Directly use the `instrument` macro instead of its full pathOli Scherer-9/+9
2022-09-01Auto merge of #100707 - dzvon:fix-typo, r=davidtwcobors-1/+1
Fix a bunch of typo This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-08-31Fix a bunch of typoDezhi Wu-1/+1
This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-08-31Rollup merge of #101049 - JeanCASPAR:remove-span_fatal-from-ast_lowering, ↵Matthias Krüger-0/+2
r=davidtwco Remove span fatal from ast lowering Now the crate `rustc_ast_lowering` is fully migrated to `SessionDiagnostic`. r? ``@davidtwco``
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-29Use `&'hir Ty` everywhere.Nicholas Nethercote-1/+1
For consistency, and because it makes HIR measurement simpler and more accurate.
2022-08-27remove span_fatal from ast_loweringJean CASPAR-0/+2
2022-08-26Rollup merge of #100724 - ↵Michael Goulet-26/+13
JeanCASPAR:migrate-ast_lowering-to-session-diagnostic, r=davidtwco Migrate ast lowering to session diagnostic I migrated the whole rustc_ast_lowering crate to session diagnostic *except* the for the use of `span_fatal` at /compiler/rustc_ast_lowering/src/expr.rs#L1268 because `#[fatal(...)]` is not yet supported (see https://github.com/rust-lang/rust/pull/100694).
2022-08-23Remove the symbol from `ast::LitKind::Err`.Nicholas Nethercote-1/+1
Because it's never used meaningfully.
2022-08-22Changes made in response to feedbackJean CASPAR-2/+2
2022-08-22Migrate ast_lowering::lib and ast_lowering::item to SessionDiagnosticJean CASPAR-26/+12
2022-08-22Migrate ast_lowering::path to SessionDiagnosticJean CASPAR-0/+1
2022-08-17Rollup merge of #100018 - nnethercote:clean-up-LitKind, r=petrochenkovMatthias Krüger-1/+1
Clean up `LitKind` r? ``@petrochenkov``
2022-08-16Auto merge of #100441 - nnethercote:shrink-ast-Attribute, r=petrochenkovbors-6/+7
Shrink `ast::Attribute`. r? `@ghost`
2022-08-16Auto merge of #100611 - matthiaskrgr:rollup-rxj10ur, r=matthiaskrgrbors-2/+2
Rollup of 6 pull requests Successful merges: - #100338 (when there are 3 or more return statements in the loop) - #100384 (Add support for generating unique profraw files by default when using `-C instrument-coverage`) - #100460 (Update the minimum external LLVM to 13) - #100567 (Add missing closing quote) - #100590 (Suggest adding an array length if possible) - #100600 (Rename Machine memory hooks to suggest when they run) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-08-16Rollup merge of #100590 - TaKO8Ki:suggest-adding-array-length, r=compiler-errorsMatthias Krüger-2/+2
Suggest adding an array length if possible fixes #100448
2022-08-16Rename some things related to literals.Nicholas Nethercote-1/+1
- Rename `ast::Lit::token` as `ast::Lit::token_lit`, because its type is `token::Lit`, which is not a token. (This has been confusing me for a long time.) reasonable because we have an `ast::token::Lit` inside an `ast::Lit`. - Rename `LitKind::{from,to}_lit_token` as `LitKind::{from,to}_token_lit`, to match the above change and `token::Lit`.
2022-08-16Auto merge of #100237 - cjgillot:no-special-hash-hir, r=nagisabors-4/+2
Remove manual implementations of HashStable for hir::Expr and hir::Ty. We do not need to force hashing HIR bodies inside those nodes. The contents of bodies are not accessible from the `hir_owner` query which used `hash_without_bodies`. When the content of a body is required, the access is still done using `hir_owner_nodes`, which continues hashing HIR bodies.
2022-08-16Shrink `ast::Attribute`.Nicholas Nethercote-6/+7
2022-08-16suggest adding an array length if possibleTakayuki Maeda-2/+2
2022-08-12Adjust cfgsMark Rousskov-1/+0
2022-08-09Add docs for get_remapped_def_idSantiago Pastorino-0/+13
2022-08-09Iterate def_ids map backwards to try first the latest mappings (it's a stack)Santiago Pastorino-1/+1
2022-08-07Remove unused hashing infra.Camille GILLOT-4/+2
2022-08-07Use start_point instead of next_point to point to elided lifetime ampersand.Camille GILLOT-1/+1
2022-08-04Fix typoSantiago Pastorino-1/+1
2022-08-04Improve opt_local_def_id docsSantiago Pastorino-7/+9
2022-08-04Improve record_def_id_remap docsSantiago Pastorino-1/+4
2022-08-04Use span_bug instead of panicSantiago Pastorino-4/+8
2022-08-04Move new_remapping inside with_hir_id_ownerSantiago Pastorino-1/+2
2022-08-04Add documentation for create_lifetime_defsSantiago Pastorino-0/+4
2022-08-04Add more debug callsSantiago Pastorino-4/+5
2022-08-04Add documentation about lifetime argsSantiago Pastorino-0/+2
2022-08-04Add documentation about lifetime_defsSantiago Pastorino-0/+3
2022-08-04Move hir_bounds after lifetime_defsSantiago Pastorino-5/+4
2022-08-04captures -> collected_lifetimesSantiago Pastorino-9/+10
2022-08-04Move lifetimes_in_bounds call to outside with_hir_id_owner block in ↵Santiago Pastorino-5/+14
lower_async_fn_ret_ty
2022-08-04Move lifetimes_in_bounds call to outside with_hir_id_owner block in ↵Santiago Pastorino-18/+23
lower_opaque_impl_trait
2022-08-04Document what collected_lifetimes vec containtsSantiago Pastorino-0/+3
2022-08-04Document lower_opaque_impl_traitSantiago Pastorino-0/+29
2022-08-04with_lifetime_binder is now lower_lifetime_binder and doesn't need a closureSantiago Pastorino-23/+21
2022-08-04Add comments on with_remappingSantiago Pastorino-0/+10
2022-08-04Document opt_local_def_idSantiago Pastorino-0/+11
2022-08-04Document generics_def_id_map field and record/get methods on itSantiago Pastorino-0/+4
2022-08-04Add comments about lifetime collect and create lifetime defs for RPITsSantiago Pastorino-0/+8
2022-08-04Avoid explicitly handling res when is not neededSantiago Pastorino-27/+45
2022-08-04create_and_capture_lifetime_defs -> create_lifetime_defsSantiago Pastorino-3/+3
2022-08-04Remove captured_lifetimes and LifetimeCaptureContext and make ↵Santiago Pastorino-81/+43
create_lifetime_defs return the captures