about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2020-02-20Change FIXME message to indicate plan to handle inference variables within ↵Ben Lewis-2/+2
this code path.
2020-02-20Erase regions before before performing const eval, to improve caching.Ben Lewis-20/+18
2020-02-19Reorder yield visitation order to match callJonas Schievink-1/+1
2020-02-19Construct `AssociatedItems` from an iterator instead of a `Vec`Dylan MacKenzie-1/+1
2020-02-19Make lookup of associated item by name O(log n)Dylan MacKenzie-15/+88
2020-02-19Replace `rustc_typeck::Namespace` with `rustc_hir::def::Namespace`Dylan MacKenzie-1/+8
2020-02-19Make is_object_safe a method.Camille GILLOT-3/+4
2020-02-19Use a constructor function per dep node instead of an enum and a single functionJohn Kåre Alsaker-57/+41
2020-02-19Remove support for dep node structsJohn Kåre Alsaker-41/+0
2020-02-19Tune inliningJohn Kåre Alsaker-1/+1
2020-02-19Fix cache hit statsJohn Kåre Alsaker-4/+14
2020-02-19Add a stat for local DefId densityJohn Kåre Alsaker-2/+35
2020-02-19Split query stats into its own fileJohn Kåre Alsaker-96/+105
2020-02-19Add a `storage` query modifier to override the query cacheJohn Kåre Alsaker-20/+32
2020-02-19Add an abstraction for custom query cachesJohn Kåre Alsaker-123/+305
2020-02-19Make `try_get_cached` take closuresJohn Kåre Alsaker-39/+47
2020-02-19Split query execution into hot and cold pathsJohn Kåre Alsaker-103/+155
2020-02-19Inline some encoding and decoding methods.Nicholas Nethercote-0/+2
This is a small performance win.
2020-02-18Add `is_const_impl_raw` queryDylan MacKenzie-0/+8
2020-02-18Rollup merge of #69146 - matthewjasper:literal-qualif, r=eddybMazdak Farrokhzad-2/+38
Always const qualify literals by type r? @eddyb
2020-02-18Blacklist powerpc-unknown-linux-gnu as having non-ignored GNU C ZSTs.Ana-Maria-3/+8
2020-02-18Rollup merge of #69200 - jonas-schievink:yield-print, r=eddyb,ZoxcDylan DPC-8/+8
Fix printing of `Yield` terminator Addresses the bug found in https://github.com/rust-lang/rust/issues/69039#issuecomment-586633495
2020-02-18Rollup merge of #69181 - skinny121:const-eval-return, r=oli-obkDylan DPC-10/+54
Change const eval to just return the value As discussed in https://github.com/rust-lang/rust/pull/68505#discussion_r370956535, the type of consts shouldn't be returned from const eval queries. r? @eddyb cc @nikomatsakis
2020-02-18Rollup merge of #69175 - estebank:shall-not-ice, r=petrochenkovYuki Okushi-3/+3
Do not ICE when encountering `yield` inside `async` block Fix #67158.
2020-02-18Rollup merge of #67272 - fisherdarling:master, r=varkor,hellow554Yuki Okushi-6/+41
recursion_limit parsing handles overflows This PR adds overflow handling to `#![recursion_limit]` attribute parsing. If parsing the given value results in an `IntErrorKind::Overflow`, then the recursion_limit is set to `usize::max_value()`. closes #67265
2020-02-17Querify object_safety_violations.Camille GILLOT-0/+135
2020-02-16Do not ICE when encountering `yield` inside `async` blockEsteban Küber-3/+3
2020-02-16Handle recursion_limit parsing errorsFisher Darling-6/+41
2020-02-16Auto merge of #67953 - cjgillot:split_infer, r=Zoxcbors-35489/+1622
Split librustc::{traits,infer} to a separate crate rustc_infer This is still very much work in progress. Three functions are between dimensions (at the end of `rustc::traits`), waiting for some dependency breaking scheme. Please tell me if the approach seems sound, and how you would like to split this PR up. The formatting is deliberately off, to ease rebasing. cc #65031
2020-02-16Auto merge of #68997 - Zoxc:pure-node-id, r=petrochenkovbors-45/+3
Panic if NodeIds are used for incremental compilation r? @michaelwoerister
2020-02-16suspend -> yieldJonas Schievink-3/+1
2020-02-16Prune rustc dependencies.Camille GILLOT-2/+0
2020-02-16Make librustc compile.Camille GILLOT-12/+12
2020-02-16Move librustc/{traits,infer} to librustc_infer.Camille GILLOT-33865/+0
2020-02-16Fix printing of `Yield` terminatorJonas Schievink-8/+10
2020-02-16Code review changes.Ben Lewis-5/+15
2020-02-15Record proc macro harness order for use during metadata deserializationAaron Hill-0/+1
Fixes #68690 When we generate the proc macro harness, we now explicitly recorder the order in which we generate entries. We then use this ordering data to deserialize the correct proc-macro-data from the crate metadata.
2020-02-15Panic when hashing node IDsJohn Kåre Alsaker-6/+3
2020-02-15Treat NodeIs as pure values for incremental compilationJohn Kåre Alsaker-43/+4
2020-02-15Add fast path for is_freezeMatthew Jasper-2/+38
2020-02-15Auto merge of #67681 - matthewjasper:infer-regions-in-borrowck, r=nikomatsakisbors-80/+132
Infer regions for opaque types in borrowck This is a step towards the goal of typeck not doing region inference. The commits up to `Arena allocate the result of mir_borrowck` are various bug fixes and prerequisites. The remaining commits move opaque type inference to borrow checking. r? @nikomatsakis
2020-02-15Change `const_field` and `const_caller_location` to return `ConstValue` ↵Ben Lewis-3/+3
instead of `Const` as the type in the returned const isn't needed.
2020-02-15Change const eval to return `ConstValue`, instead of `Const` as the type ↵Ben Lewis-6/+40
inside it shouldn't be used.
2020-02-14Add fast path to eq_opaque_type_and_typeMatthew Jasper-3/+9
2020-02-14Use member constraint for most opaque types in NLLMatthew Jasper-15/+41
This ensures that NLL will infer suitable values for regions in opaque types when it's possible.
2020-02-14Improve opaque type lifetime errorsMatthew Jasper-17/+5
* Use better span for member constraint errors * Avoid a bad suggestion * Don't report member constraint errors if we have other universal region errors.
2020-02-14Address review commentsMatthew Jasper-17/+28
2020-02-14Erase regions in opaque types in typeckMatthew Jasper-20/+35
2020-02-14Prepare to use borrowck to resolve opaque typesMatthew Jasper-1/+7
2020-02-14Arena allocate the result of mir_borrowckMatthew Jasper-10/+8