about summary refs log tree commit diff
path: root/compiler/rustc_save_analysis/src
AgeCommit message (Collapse)AuthorLines
2022-07-12Add an indirection for closures in `hir::ExprKind`Maybe Waffle-1/+1
This helps bring `hir::Expr` size down, `Closure` was the biggest variant, especially after `for<>` additions.
2022-07-11move else block into the `Local` structDing Xiang Fei-2/+2
2022-07-11lower let-else in MIR insteadDing Xiang Fei-10/+4
2022-07-01Factor out hir::Node::BindingCameron Steffen-3/+3
2022-06-12Make `ExprKind::Closure` a struct variant.Camille GILLOT-3/+3
2022-06-03Fully stabilize NLLJack Huey-1/+0
2022-05-12[save-analysis] Reference the variant not enum at struct-literal construction.Kelsey Gilbert-3/+8
Closes #96985
2022-05-02rustc: Panic by default in `DefIdTree::parent`Vadim Petrochenkov-10/+7
Only crate root def-ids don't have a parent, and in majority of cases the argument of `DefIdTree::parent` cannot be a crate root. So we now panic by default in `parent` and introduce a new non-panicing function `opt_parent` for cases where the argument can be a crate root. Same applies to `local_parent`/`opt_local_parent`.
2022-04-30Store all generic bounds as where predicates.Camille GILLOT-27/+0
2022-04-30Inline WhereClause into Generics.Camille GILLOT-1/+1
2022-04-23Drop vis in ImplItem.Camille GILLOT-18/+2
2022-04-23Drop vis in FieldDef.Camille GILLOT-14/+18
2022-04-23Stop pretty-printing HIR visibility.Camille GILLOT-4/+2
2022-04-23Stop visiting visibility.Camille GILLOT-6/+0
2022-03-31remove find_use_placementFausto-3/+3
A more robust solution to finding where to place use suggestions was added. The algorithm uses the AST to find the span for the suggestion so we pass this span down to the HIR during lowering and use it. Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-03-31Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errorsDylan DPC-1/+1
Spellchecking compiler comments This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues.
2022-03-30Spellchecking compiler commentsYuri Astrakhan-1/+1
This PR cleans up the rest of the spelling mistakes in the compiler comments. This PR does not change any literal or code spelling issues.
2022-03-29Remember mutability in `DefKind::Static`.Camille GILLOT-1/+1
This allows to compute the `BodyOwnerKind` from `DefKind` only, and removes a direct dependency of some MIR queries onto HIR. As a side effect, it also simplifies metadata, since we don't need 4 flavours of `EntryKind::*Static` any more.
2022-03-11Improve `AdtDef` interning.Nicholas Nethercote-1/+1
This commit makes `AdtDef` use `Interned`. Much the commit is tedious changes to introduce getter functions. The interesting changes are in `compiler/rustc_middle/src/ty/adt.rs`.
2022-02-25Switch bootstrap cfgsMark Rousskov-1/+1
2022-02-24resolve: Fix incorrect results of `opt_def_kind` query for some built-in macrosVadim Petrochenkov-1/+1
Previously it always returned `MacroKind::Bang` while some of those macros are actually attributes and derives
2022-02-20Auto merge of #94062 - Mark-Simulacrum:drop-print-cfg, r=oli-obkbors-1/+1
Move ty::print methods to Drop-based scope guards Primary goal is reducing codegen of the TLS access for each closure, which shaves ~3 seconds of bootstrap time over rustc as a whole.
2022-02-19Adopt let else in more placesest31-15/+8
2022-02-16Move ty::print methods to Drop-based scope guardsMark Rousskov-1/+1
2022-02-12change to a struct variantEllen-4/+4
2022-02-10Remove further usage of `&hir::Map`Frank Steffahn-4/+4
2022-02-02More let_else adoptionsest31-3/+3
2022-02-01add a rustc::query_stability lintlcnr-0/+1
2022-01-31Rollup merge of #90277 - pierwill:fix-70258-inference-terms, r=jackh726Matthias Krüger-1/+1
Improve terminology around "after typeck" Closes #70258.
2022-01-21Remove a span from hir::ExprKind::MethodCallCameron Steffen-3/+1
2022-01-19Correctly handle starts in block doc commentsGuillaume Gomez-2/+2
2022-01-16Replace NestedVisitorMap with NestedFilterCameron Steffen-8/+8
2022-01-07Add `trait_item_def_id` to `AssocItem`Matthew Jasper-7/+5
This allows avoiding some lookups by name
2022-01-03reviewlcnr-5/+1
2021-12-23implement `generic_arg_infer` for array lengthslcnr-10/+26
2021-12-19Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obkbors-2/+2
Remove `SymbolStr` This was originally proposed in https://github.com/rust-lang/rust/pull/74554#discussion_r466203544. As well as removing the icky `SymbolStr` type, it allows the removal of a lot of `&` and `*` occurrences. Best reviewed one commit at a time. r? `@oli-obk`
2021-12-15Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514Matthias Krüger-1/+1
fix clippy::single_char_pattern perf findings
2021-12-15Remove unnecessary sigils around `Ident::as_str()` calls.Nicholas Nethercote-1/+1
2021-12-15Remove unnecessary sigils around `Symbol::as_str()` calls.Nicholas Nethercote-1/+1
2021-12-14fix clippy::single_char_pattern perf findingsMatthias Krüger-1/+1
2021-12-13Keep info on pre-desugaring expression for better "incorrect `.await`" ↵Esteban Kuber-1/+1
suggestion Keep the `HirId` of `.await`ed expressions so in the case of a `fn` call on on a sync `fn`, we can suggest maybe turning it into an `async fn`.
2021-11-07Give inline const separate DefKindGary Guo-0/+1
2021-11-06Improve terminology around "after typeck"pierwill-1/+1
2021-11-04clippy::perf fixesMatthias Krüger-2/+2
2021-10-28Revert "Add rustc lint, warning when iterating over hashmaps"Mark Rousskov-1/+0
2021-10-15allow `potential_query_instability` everywherelcnr-0/+1
2021-10-05Auto merge of #89266 - cjgillot:session-ich, r=michaelwoeristerbors-1/+1
Move ICH to rustc_query_system Based on https://github.com/rust-lang/rust/pull/89183 The StableHashingContext does not need to be in rustc_middle. This PR moves it to rustc_query_system. This will avoid a dependency between rustc_ast_lowering and rustc_middle in https://github.com/rust-lang/rust/pull/89124.
2021-10-03Move rustc_middle::middle::cstore to rustc_session.Camille GILLOT-1/+1
2021-10-02Consistently use 'supertrait'.Bruce Mitchener-1/+1
A subset of places referred to 'super-trait', so this changes them to all use 'supertrait'. This matches 'supertype' and some other usages. An exception is 'auto-trait' which is consistently used in that manner.
2021-09-29Avoid more invocations of hir_crate query.Camille GILLOT-7/+7