about summary refs log tree commit diff
path: root/compiler/rustc_index/src
AgeCommit message (Collapse)AuthorLines
2021-05-31Remove unused feature gatesbjorn3-1/+0
2021-05-31Use allow_internal_unstable more in rustc_indexbjorn3-2/+1
2021-05-26Unify feature flags as `step_trait`Jacob Pratt-1/+1
While stdlib implementations of the unchecked methods require unchecked math, there is no reason to gate it behind this for external users. The reasoning for a separate `step_trait_ext` feature is unclear, and as such has been merged as well.
2021-05-26Specialize implementationsJacob Pratt-0/+4
Implementations in stdlib are now optimized as they were before.
2021-05-26Make Range implementation safeJacob Pratt-1/+1
2021-05-04Change bitwise operator to more easily keep data in vector registersMark Rousskov-3/+7
2021-04-25fix sanitizer testsRalf Jung-1/+0
2021-04-25move core::hint::black_box under its own feature gateRalf Jung-0/+2
2021-04-24Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obkbors-1/+0
further split up const_fn feature flag This continues the work on splitting up `const_fn` into separate feature flags: * `const_fn_trait_bound` for `const fn` with trait bounds * `const_fn_unsize` for unsizing coercions in `const fn` (looks like only `dyn` unsizing is still guarded here) I don't know if there are even any things left that `const_fn` guards... at least libcore and liballoc do not need it any more. `@oli-obk` are you currently able to do reviews?
2021-04-21Use arrayvec 0.7, drop smallvec 0.6Jubilee Young-1/+1
With the arrival of min const generics, many alt-vec libraries have updated to use it in some way and arrayvec is no exception. Use the latest with minor refactoring. Also, rustc_workspace_hack is the only user of smallvec 0.6 in the entire tree, so drop it.
2021-04-18fix feature use in rustc libsRalf Jung-1/+0
2021-04-03Add fixme comment to revert change once const_panic is stableWilco Kusee-0/+2
2021-04-03Remove nightly features in rustc_type_irWilco Kusee-2/+2
2021-03-26Use iter::zip in compiler/Josh Stone-3/+4
2021-03-09Remove useless Clone bound in IndexVec.Camille GILLOT-7/+7
2021-02-26Miscellaneous inlining improvementsTomasz Miąsko-0/+1
Inline a few small and hot functions.
2021-02-07Auto merge of #81498 - thomaseizinger:ice-workaround-56935-rustc-index, ↵bors-0/+4
r=matthewjasper Apply workaround from #72003 for #56935 to allow for cross-compilation of `rustc_index` crate This patch applies the same workaround as #72003 to the `rustc_index` crate. This allows recent versions of rustfmt to compile to wasm again. Related: #72017.
2021-02-05Rollup merge of #81682 - JulianKnodt:bit_set_iter_benchmarks, r=oli-obkMara Bos-0/+34
Add additional bitset benchmarks Add additional benchmarks for operations in bitset, I realize that it was a bit lacking when I intended to optimize it earlier, so I was hoping to put some in so I can verify my work later.
2021-02-04relax adt unsizing requirementsBastian Kauschke-0/+12
2021-02-02Add additional benchmarks to bit_setkadmin-0/+34
2021-01-29Apply workaround from #72003 for #56935Thomas Eizinger-0/+4
Related: #72017.
2020-12-18Switch compiler/ to intra-doc linksJoshua Nelson-1/+0
rustc_lint and rustc_lint_defs weren't switched because they're included in the compiler book and so can't use intra-doc links.
2020-11-22Stabilise `then`varkor-1/+0
2020-08-30Improve `BitSet` APIsDylan MacKenzie-17/+37
A few small cleanups to `BitSet` and friends: - Overload `clone_from` for `BitSet`. - Improve `Debug` represenation of `HybridBitSet`. - Make `HybridBitSet::domain_size` public. - Don't require `T: Idx` at the type level. The `Idx` bound is still on most `BitSet` methods, but like `HashMap`, it doesn't need to be satisfied for the type to exist.
2020-08-30mv compiler to compiler/mark-0/+2438