rust/src/librustc_metadata
Nicholas Nethercote 266e2d3d69 Merge indexed_set.rs into bitvec.rs, and rename it bit_set.rs.
Currently we have two files implementing bitsets (and 2D bit matrices).
This commit combines them into one, taking the best features from each.

This involves renaming a lot of things. The high level changes are as
follows.
- bitvec.rs              --> bit_set.rs
- indexed_set.rs         --> (removed)
- BitArray + IdxSet      --> BitSet (merged, see below)
- BitVector              --> GrowableBitSet
- {,Sparse,Hybrid}IdxSet --> {,Sparse,Hybrid}BitSet
- BitMatrix              --> BitMatrix
- SparseBitMatrix        --> SparseBitMatrix

The changes within the bitset types themselves are as follows.

```
OLD             OLD             NEW
BitArray<C>     IdxSet<T>       BitSet<T>
--------        ------          ------
grow            -               grow
new             -               (remove)
new_empty       new_empty       new_empty
new_filled      new_filled      new_filled
-               to_hybrid       to_hybrid
clear           clear           clear
set_up_to       set_up_to       set_up_to
clear_above     -               clear_above
count           -               count
contains(T)     contains(&T)    contains(T)
contains_all    -               superset
is_empty        -               is_empty
insert(T)       add(&T)         insert(T)
insert_all      -               insert_all()
remove(T)       remove(&T)      remove(T)
words           words           words
words_mut       words_mut       words_mut
-               overwrite       overwrite
merge           union           union
-               subtract        subtract
-               intersect       intersect
iter            iter            iter
```

In general, when choosing names I went with:
- names that are more obvious (e.g. `BitSet` over `IdxSet`).
- names that are more like the Rust libraries (e.g. `T` over `C`,
  `insert` over `add`);
- names that are more set-like (e.g. `union` over `merge`, `superset`
  over `contains_all`, `domain_size` over `num_bits`).

Also, using `T` for index arguments seems more sensible than `&T` --
even though the latter is standard in Rust collection types -- because
indices are always copyable. It also results in fewer `&` and `*`
sigils in practice.
2018-09-18 07:08:09 +10:00
..
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
Cargo.toml Move validate_crate_name to rustc_metadata 2018-08-03 11:09:02 -06:00
creader.rs rustc_resolve: always include core, std and meta in the extern prelude. 2018-09-15 22:48:10 +03:00
cstore.rs mv codemap source_map 2018-08-19 23:01:01 +02:00
cstore_impl.rs Merge indexed_set.rs into bitvec.rs, and rename it bit_set.rs. 2018-09-18 07:08:09 +10:00
decoder.rs Auto merge of #53721 - arielb1:exhaustively-unpun, r=nikomatsakis 2018-09-06 06:42:19 +00:00
diagnostics.rs Rename trans to codegen everywhere. 2018-05-17 15:08:30 +03:00
dynamic_lib.rs rustc_metadata: test loading atoi instead of cos 2018-07-26 17:20:02 -07:00
encoder.rs renamed emit_nil to emit_unit 2018-09-11 23:32:41 +09:00
foreign_modules.rs ItemKind 2018-07-16 15:09:17 +02:00
index.rs Make opaque::Encoder append-only and make it infallible 2018-06-27 11:43:15 +02:00
index_builder.rs Replace uses of DepGraph.in_ignore with DepGraph.with_ignore 2018-01-09 18:35:50 +01:00
isolated_encoder.rs Remove HIR inlining 2018-04-19 20:33:18 -04:00
lib.rs stabalize infer outlives requirements (RFC 2093). 2018-09-11 11:40:04 -04:00
link_args.rs ItemKind 2018-07-16 15:09:17 +02:00
locator.rs rustc: add unstable support for --extern crate_name without a path. 2018-09-15 22:48:10 +03:00
native_libs.rs Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor 2018-08-21 17:51:49 +08:00
schema.rs crates that provide a panic_handler are exempt from unused_extern_crates 2018-09-06 21:24:33 +02:00