about summary refs log tree commit diff
path: root/src/librustc_data_structures
AgeCommit message (Collapse)AuthorLines
2019-01-09Auto merge of #56614 - Zoxc:query-perf2, r=michaelwoeristerbors-149/+62
Replace LockCell with atomic types Split from https://github.com/rust-lang/rust/pull/56509 r? @michaelwoerister
2019-01-07Rollup merge of #57308 - Zoxc:controller-sync, r=michaelwoeristerPietro Albini-0/+1
Make CompileController thread-safe
2019-01-06flock: Use fcntl constants directly from libc crate on Unix targetsJohn Paul Adrian Glaubitz-41/+5
Since the values for the fcntl constants can vary from architecture to architecture, it is better to use the values defined in the libc crate instead of assigning literals in the flock code which would make the assumption that all architectures use the same values. Fixes #57007
2019-01-03Make CompileController thread-safeJohn Kåre Alsaker-0/+1
2018-12-29Replace LockCell with atomic typesJohn Kåre Alsaker-149/+62
2018-12-25Remove licensesMark Rousskov-391/+0
2018-12-23Rollup merge of #57034 - Zoxc:query-perf8, r=michaelwoeristerkennytm-0/+2
Inline tweaks r? @michaelwoerister
2018-12-21Inline tweaksJohn Kåre Alsaker-0/+2
2018-12-19Stabilize Vec(Deque)::resize_withScott McMurray-1/+0
Closes #41758
2018-12-17Tweak query code for performanceJohn Kåre Alsaker-0/+23
2018-12-10sorted_map: add contains_key functionljedrz-0/+8
2018-12-10sorted_map: readability/whitespace fixesljedrz-4/+6
2018-12-10sorted_map: add is_emptyljedrz-0/+5
2018-12-10sorted_map: make the impls of Index and get match ones from BTreeMapljedrz-12/+26
2018-12-10sorted_map: change From<Iterator<I>> to FromIterator<I>ljedrz-4/+4
2018-12-10Upgrade `smallvec` to 0.6.7 and use the new `may_dangle` feature.Nicholas Nethercote-1/+1
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-8/+8
2018-12-06Auto merge of #55635 - oli-obk:min_const_unsafe_fn, r=nikomatsakisbors-4/+28
Allow calling `const unsafe fn` in `const fn` behind a feature gate cc #55607 r? @Centril
2018-12-04Automatically generate imports for newtype_index `Deserialize` implsOliver Scherer-8/+16
2018-12-04Make `newtype_index` safeOliver Scherer-4/+20
2018-12-03data_structures: remove tuple_sliceljedrz-71/+0
2018-11-29Use raw_entry for more efficient interningJohn Kåre Alsaker-0/+70
2018-11-25Remove `OpenSnapshot` and `CommittedSnapshot` markers from `SnapshotMap`.Nicholas Nethercote-34/+25
They're not strictly necessary, and they result in the `Vec` being allocated even for the trivial (and common) case where a `start_snapshot` is immediately followed by a `commit` or `rollback_to`.
2018-11-25Introduce `in_snapshot` and `assert_open_snapshot` methods.Nicholas Nethercote-3/+7
This makes the two snapshot implementations more consistent with each other and with crate `ena`.
2018-11-25Make `commit` and `rollback_to` methods take ownership of the snapshots.Nicholas Nethercote-8/+8
Because they shouldn't be reused. This provides consistency with the `ena` crate.
2018-11-25Replace a `.truncate(0)` call with `.clear()`.Nicholas Nethercote-1/+1
2018-11-25Remove `insert_noop`.Nicholas Nethercote-10/+4
Because it's as useless as its name suggests. This commit also renames `UndoLog::Noop` as `UndoLog::Purged`, because (a) that's a more descriptive name and (b) it matches the name used in similar code in `librustc/infer/region_constraints/mod.rs`.
2018-11-25Update to `ena` 0.11.0.Nicholas Nethercote-1/+1
This version has some significant speed-ups relating to snapshotting.
2018-11-24Rollup merge of #55945 - oli-obk:static_assert_arg_type, r=michaelwoeristerkennytm-1/+2
Ensure that the argument to `static_assert` is a `bool` cc @eddyb
2018-11-21rustc: implement and use Default on more types.Eduard-Mihai Burtescu-23/+25
2018-11-21rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.Eduard-Mihai Burtescu-3/+1
2018-11-16Ensure that the `static_assert!` argument is a `bool`Oliver Scherer-1/+2
2018-11-16remove unused dependencyAndreas Jonson-1/+0
2018-11-15Rollup merge of #55901 - euclio:speling, r=petrochenkovPietro Albini-4/+4
fix various typos in doc comments
2018-11-13fix various typos in doc commentsAndy Russell-4/+4
2018-11-13Move `static_assert!` into librustc_data_structures.Nicholas Nethercote-0/+22
This means it can be used by more crates.
2018-11-07Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwcokennytm-2/+2
refactor: use shorthand fields refactor: use shorthand for single fields everywhere (excluding tests).
2018-11-07Rollup merge of #55501 - nnethercote:DoCompleted, r=pnkfelixkennytm-69/+84
Make `process_obligations`' computation of `completed` optional. It's only used in tests. This reduces instruction counts on several benchmarks by 0.5--1%.
2018-11-06refactor: use shorthand fieldsteresy-2/+2
2018-10-31Bump nightly to 1.32.0Alex Crichton-1/+0
* Also update the bootstrap compiler * Update cargo to 1.32.0 * Clean out stage0 annotations
2018-10-30Make `process_obligations`' computation of `completed` optional.Nicholas Nethercote-69/+84
It's only used in tests. This reduces instruction counts on several benchmarks by 0.5--1%.
2018-10-29Use opt.take() instead of mem::replace(opt, None)ljedrz-5/+3
2018-10-23Auto merge of #54778 - scottmcm:stabilize-ihle, r=pnkfelixbors-1/+1
Stabilize impl_header_lifetime_elision in 2015 ~~This is currently blocked on https://github.com/rust-lang/rust/issues/54902; it should be good after that~~ It's already stable in 2018; this finishes the stabilization. FCP completed (https://github.com/rust-lang/rust/issues/15872#issuecomment-417953153), proposal (https://github.com/rust-lang/rust/issues/15872#issuecomment-412759783). Tracking issue: https://github.com/rust-lang/rust/issues/15872 Usage examples (from libcore): https://github.com/rust-lang/rust/pull/54687
2018-10-19Stabilize impl_header_lifetime_elision in 2015Scott McMurray-1/+1
It's already stable in 2018; this finishes the stabilization.
2018-10-19Update unit testsOliver Scherer-19/+19
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-11/+17
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-21/+6
2018-10-18Rollup merge of #55127 - ljedrz:simplify_hybridbitset, r=matthewjasperkennytm-36/+14
Remove HybridBitSet::dummy This simplifies some of the `HybridBitSet` code. cc @nnethercote
2018-10-16Remove HybridBitSet::dummyljedrz-36/+14
2018-10-14Added graphviz visualization for obligation forests.Diogo Sousa-0/+105
This can be a big help when debugging the trait resolver.