summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/query.rs
AgeCommit message (Collapse)AuthorLines
2022-06-06Rollup merge of #97312 - cjgillot:no-path-in-scope, r=compiler-errorsDylan DPC-3/+1
Compute lifetimes in scope at diagnostic time The set of available lifetimes is currently computed during lifetime resolution on HIR. It is only used for one diagnostic. In this PR, HIR lifetime resolution just reports whether elided lifetimes are well-defined at the place of use. The diagnostic code is responsible for building a list of lifetime names if elision is not allowed. This will allow to remove lifetime resolution on HIR eventually.
2022-06-04Iterate over `maybe_unused_trait_imports` when checking dead trait importsElliot Roberts-1/+1
2022-06-04Completely remove LifetimeScopeForPath.Camille GILLOT-3/+1
2022-05-22factor out the rvalue lifetime ruleDing Xiang Fei-1/+0
remove region_scope_tree from RegionCtxt Apply suggestions from code review Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-05-16use GlobalId in eval_to_valtree query and introduce query for ↵b-naber-2/+4
valtree_to_const_val
2022-04-25Auto merge of #95604 - nbdd0121:used2, r=petrochenkovbors-1/+1
Generate synthetic object file to ensure all exported and used symbols participate in the linking Fix #50007 and #47384 This is the synthetic object file approach that I described in https://github.com/rust-lang/rust/pull/95363#issuecomment-1079932354, allowing all exported and used symbols to be linked while still allowing them to be GCed. Related #93791, #95363 r? `@petrochenkov` cc `@carbotaniuman`
2022-04-18Add `SymbolExportInfo`Gary Guo-1/+1
This is currently a wrapper to `SymbolExportLevel` but it allows later addition of extra information.
2022-04-16Provide a better diagnostic on failure to meet send bound on futures in a ↵oribenshir-5/+5
foreign crate Adding diagnostic data on generators to the crate metadata and using it to provide a better diagnostic on failure to meet send bound on futures originated from a foreign crate
2022-03-24Swap DtorckConstraint to DropckConstraintInfRandomness-1/+1
This change was made as per suspicion that this struct was never renamed after consistent use of DropCk. This also clarifies the meaning behind the name of this structure.
2022-03-16resolve the conflict in compiler/rustc_session/src/parse.rscodehorseman-1/+1
Signed-off-by: codehorseman <cricis@yeah.net>
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-1/+1
2022-02-20Delete QueryLookupMark Rousskov-9/+8
This was largely just caching the shard value at this point, which is not particularly useful -- in the use sites the key was being hashed nearby anyway.
2022-02-20Move Sharded maps into each QueryCache implMark Rousskov-1/+1
2022-02-09Ensure that queries only return Copy types.Camille GILLOT-1/+14
2022-01-25Return an indexmap in `all_local_trait_impls` querypierwill-1/+0
The data structure previously used here required Ord. As part of #90317, we do not want DefId to implement Ord.
2022-01-09rustc_middle: Rename `Export` to `ModChild` and add some commentsVadim Petrochenkov-1/+1
Also rename `module_exports`/`export_map` to `module_reexports`/`reexport_map` for clarity.
2022-01-06rustc_middle: Add a method for getting a `SimplifiedType` definition/IDVadim Petrochenkov-0/+1
Import `SimplifiedType` more
2021-12-15Remove `in_band_lifetimes` from `rustc_middle`Aaron Hill-7/+7
See #91867 This was mostly straightforward. In several places, I take advantage of the fact that lifetimes are non-hygenic: a macro declares the 'tcx' lifetime, which is then used in types passed in as macro arguments.
2021-12-12Query modifierDeadbeef-0/+14
2021-10-25Avoid a branch on key being local for queries that use the same local and ↵bjorn3-0/+50
extern providers
2021-10-20Avoid trivial lambdas.Camille GILLOT-4/+6
2021-10-05Auto merge of #89266 - cjgillot:session-ich, r=michaelwoeristerbors-2/+2
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-2/+2
2021-10-02Prevent macro ambiguity errorsbjorn3-3/+3
The previous macro_rules! parsers failed when an additional modifier was added with ambiguity errors. The error is pretty unclear as to what exactly the cause here is, but this change simplifies the argument parsing code such that the error is avoided.
2021-09-18Querify `fn_abi_of_{fn_ptr,instance}`.Eduard-Mihai Burtescu-0/+1
2021-07-18Remove deadlock virtual call.Camille GILLOT-3/+0
2021-07-18Move OnDiskCache to rustc_query_impl.Camille GILLOT-0/+310