summary refs log tree commit diff
path: root/src/librustc/query
AgeCommit message (Collapse)AuthorLines
2019-10-31Implement dual proc macro hashingmsizanoen-0/+4
This changes the mechanism of `-Z dual-proc-macro` to record the host proc macro hash in the transistive dependency information and use it during dependency resolution instead of resolving only by name.
2019-10-29Don't use eval_always for miri queries used from codegen.Eduard-Mihai Burtescu-2/+0
2019-10-28Rollup merge of #65664 - anp:panic-location, r=eddybMazdak Farrokhzad-0/+6
`std::panic::Location` is a lang_item, add `core::intrinsics::caller_location` (RFC 2091 3/N) [Tracking issue](https://github.com/rust-lang/rust/issues/47809) [RFC text](https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md) @eddyb suggested doing this intrinsic implementation ahead of actually implementing the `#[track_caller]` attribute so that there's an easily tested intermediate step between adding the shim and wiring up the attribute.
2019-10-27Always use consteval to codegen caller_location.Adam Perry-0/+6
2019-10-24rustc: add `Span`s to `inferred_outlives_of` predicates.Eduard-Mihai Burtescu-1/+1
2019-10-21Use `Symbol` for codegen unit names.Nicholas Nethercote-2/+2
This is a straightforward replacement except for two places where we have to convert to `LocalInternedString` to get a stable sort.
2019-10-18rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole ↵Eduard-Mihai Burtescu-8/+5
struct.
2019-10-12Make trivial dropck outlives a queryMark Rousskov-0/+6
This allows caching some recursive types and getting to an error much more quickly.
2019-09-30Remove HIR based const qualificationMatthew Jasper-13/+1
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-1/+1
2019-09-27cleanup dead ast-borrowck / migrate-mode code.Mazdak Farrokhzad-4/+0
2019-09-27cleanup check_match wrt. SignalledError.Mazdak Farrokhzad-1/+1
2019-09-26Auto merge of #62661 - arielb1:never-reserve, r=nikomatsakisbors-1/+1
reserve `impl<T> From<!> for T` this is necessary for never-type stabilization. cc #57012 #35121 I think we wanted a crater run for this @nikomatsakis? r? @nikomatsakis
2019-09-25Rollup merge of #64599 - csmoe:doc_async_reexport, r=nikomatsakisMazdak Farrokhzad-0/+4
Rustdoc render async function re-export Closes #63710 r? @nikomatsakis
2019-09-24resolve the rustc_reservation_impl attribute in 1 placeAriel Ben-Yehuda-1/+1
2019-09-23rustc: Fix mixing crates with different `share_generics`Alex Crichton-1/+3
This commit addresses #64319 by removing the `dylib` crate type from the list of crate type that exports generic symbols. The bug in #64319 arises because a `dylib` crate type was trying to export a symbol in an uptream crate but it miscalculated the symbol name of the uptream symbol. This isn't really necessary, though, since `dylib` crates aren't that heavily used, so we can just conservatively say that the `dylib` crate type never exports generic symbols, forcibly removing them from the exported symbol lists if were to otherwise find them. The fix here happens in two places: * First is in the `local_crate_exports_generics` method, indicating that it's now `false` for the `Dylib` crate type. Only rlibs actually export generics at this point. * Next is when we load exported symbols from upstream crate. If, for our compilation session, the crate may be included from a dynamic library, then its generic symbols are removed. When the crate was linked into a dynamic library its symbols weren't exported, so we can't consider them a candidate to link against. Overally this should avoid situations where we incorrectly calculate the upstream symbol names in the face of differnet `share_generics` options, ultimately... Closes #64319
2019-09-23rustc: Convert `dependency_formats` to a queryAlex Crichton-0/+4
This commit converts a field of `Session`, `dependency_formats`, into a query of `TyCtxt`. This information then also needed to be threaded through to other remaining portions of the linker, but it's relatively straightforward. The only change here is that instead of `HashMap<CrateType, T>` the data structure changed to `Vec<(CrateType, T)>` to make it easier to deal with in queries.
2019-09-21rename is_async_fn to asyncnesscsmoe-1/+1
2019-09-19append asyncness info to functionscsmoe-1/+1
2019-09-19add is_async_fn querycsmoe-0/+4
2019-09-17Get rid of special const intrinsic query in favour of `const_eval`Oliver Scherer-9/+0
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: librustcAlexander Regueiro-3/+2
2019-08-30Add a "diagnostic item" schemeOliver Scherer-1/+18
This allows lints and other diagnostics to refer to items by a unique ID instead of relying on whacky path resolution schemes that may break when items are relocated.
2019-08-22Fix tidyWesley Wiser-1/+5
2019-08-22Move promoted out of mir::BodyWesley Wiser-2/+12
2019-07-30Do not downgrade NLL errors for bind_by_move_pattern_guards when AST says it ↵Mazdak Farrokhzad-1/+1
is OK.
2019-07-23normalize use of backticks for compiler messages in remaining modulesSamy Kacimi-3/+3
https://github.com/rust-lang/rust/issues/60532
2019-07-16Auto merge of #62322 - wesleywiser:promoted_query, r=oli-obkbors-0/+2
Add a query to get the `promoted`s for a `mir::Body` This is a builidng block toward removing a lot of duplicated code between miri and the cosnt-propagator pass. See this thread for more info: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661 r? @spastorino but feel free to hand it off to somebody else
2019-07-02Add a query to get the `promoted`s for a `mir::Body`Wesley Wiser-0/+2
This is a builidng block toward removing a lot of duplicated code between miri and the cosnt-propagator pass. See this thread for more info: https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/Using.20.60InterpCx.60.20more/near/169030661
2019-07-02Derive which queries to save using the proc macroJohn Kåre Alsaker-5/+0
2019-06-30Keep caching for non-promoted queriesJohn Kåre Alsaker-0/+2
2019-06-30Clean up query cache codeJohn Kåre Alsaker-23/+38
2019-06-02query-fy type_nameMark Mansi-0/+9
2019-06-02query-ify const_fieldMark Mansi-0/+10
2019-06-01rustc: use indexmap instead of a plain vector for upvars.Eduard-Mihai Burtescu-1/+1
2019-06-01Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddybMazdak Farrokhzad-3/+3
Remove GlobalArenas and use Arena instead r? @eddyb
2019-05-31rustc_codegen_utils: add new mangling scheme implementation.Eduard-Mihai Burtescu-0/+4
2019-05-31Remove GlobalArenas and use Arena insteadJohn Kåre Alsaker-3/+3
2019-05-29rustc: rename Mir to mir::Body in comments and to MIR in error strings.Eduard-Mihai Burtescu-1/+1
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-6/+6
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-1/+1
We are going to uniform the terminology of all associated items. Methods that may or may not have `self` are called "associated functions". Because `AssociatedFn` is a bit long, we rename `Associated` to `Assoc`.
2019-05-23Update crate_variances and inferred_outlives_crateJohn Kåre Alsaker-2/+2
2019-05-23Update dylib_dependency_formats, extern_crate and reachable_non_genericsJohn Kåre Alsaker-3/+3
2019-05-23Update foreign_modules and dllimport_foreign_itemsJohn Kåre Alsaker-2/+2
2019-05-23Update visible_parent_mapJohn Kåre Alsaker-1/+1
2019-05-23Update get_lib_features, defined_lib_features, get_lang_items, ↵John Kåre Alsaker-7/+7
defined_lang_items, missing_lang_items, postorder_cnums and maybe_unused_extern_crates
2019-05-23Update wasm_import_module_map and target_features_whitelistJohn Kåre Alsaker-2/+2
2019-05-23Update upvars and module_exportsJohn Kåre Alsaker-2/+2
2019-05-23Update in_scope_traits_mapJohn Kåre Alsaker-1/+1
2019-05-23Update privacy_access_levelsJohn Kåre Alsaker-1/+1