about summary refs log tree commit diff
path: root/src/librustc_data_structures
AgeCommit message (Collapse)AuthorLines
2019-06-16Auto merge of #61347 - Centril:stabilize-underscore_const_names, r=petrochenkovbors-2/+3
Stabilize underscore_const_names in 1.37.0 You are now permitted to write: ```rust const _: $type_expression = $term_expression; ``` That is, we change the [grammar of items](https://github.com/rust-lang-nursery/wg-grammar/blob/9d1984d7ae8d6576f943566539a31a5800644c57/grammar/item.lyg#L3-L42), as written in [the *`.lyg`* notation](https://github.com/rust-lang/gll/tree/263bf161dad903e67aa65fc591ced3cab18afa2a#grammar), from: ```java Item = attrs:OuterAttr* vis:Vis? kind:ItemKind; ItemKind = | ... | Const:{ "const" name:IDENT ":" ty:Type "=" value:Expr ";" } | ... ; ``` into: ```java Item = attrs:OuterAttr* vis:Vis? kind:ItemKind; ItemKind = | ... | Const:{ "const" name:IdentOrUnderscore ":" ty:Type "=" value:Expr ";" } | ... ; IdentOrUnderscore = | Named:IDENT | NoName:"_" ; ``` r? @petrochenkov
2019-06-16Separate librustc_data_structures modulechansuke-915/+913
2019-06-12Auto merge of #60669 - c410-f3r:attrs-fn, r=petrochenkovbors-0/+6
Allow attributes in formal function parameters Implements https://github.com/rust-lang/rust/issues/60406. This is my first contribution to the compiler and since this is a large and complex project, I am not fully aware of the consequences of the changes I have made. **TODO** - [x] Forbid some built-in attributes. - [x] Expand cfg/cfg_attr
2019-06-10Add more functionality to BitMatrixTyler Mandry-1/+93
2019-06-10Stabilize underscore_const_names: stage0 -> bootstrap.Mazdak Farrokhzad-3/+3
2019-06-10Stabilize underscore_const_names.Mazdak Farrokhzad-2/+3
2019-06-09Allow attributes in formal function parametersCaio-0/+6
2019-06-01rustc: use indexmap instead of a plain vector for upvars.Eduard-Mihai Burtescu-0/+37
2019-05-25Add Step::sub_usizeTim Vermeulen-0/+5
2019-05-22Add documentation on the reasoningAndreas Molzer-4/+14
Explains the thought process behind adding the union algorithm and discusses the alternative and heuristic behind.
2019-05-22Improve union of sparse and dense hybrid setAndreas Molzer-4/+45
This optimization speeds up the union of a hybrid bitset when that switches it from a sparse representation to a dense bitset. It now clones the dense bitset and integrate only the spare elements instead of densifying the sparse bitset, initializing all elements, and then a union on two dense bitset, touching all words a second time.
2019-05-22Provide some benchmarks for bitset hybrid unionAndreas Molzer-0/+88
2019-05-21update doc commentRalf Jung-2/+1
2019-05-21static_assert: make use of anonymous constantsRalf Jung-3/+3
2019-05-20Rollup merge of #60959 - petrochenkov:sassert, r=estebankMazdak Farrokhzad-0/+9
rustc: Improve type size assertions Now they - Tell what the new size is, when it changes - Do not require passing an identifier ``` ::: src\libsyntax\parse\token.rs:223:1 | 223 | static_assert_size!(Token, 123); | -------------------------------- in this macro invocation | = note: expected type `[(); 123]` found type `[(); 16]` ```
2019-05-20Document requirements for HashStable implementations better.Michael Woerister-0/+24
2019-05-19Improve type size assertionsVadim Petrochenkov-0/+9
Now they - Tell what the new size is, when it changes - Do not require passing an identifier
2019-05-17Remove unused field from StableHasher.Michael Woerister-20/+0
2019-05-13Remove bitrig support from rustMarcel Hellwig-1/+0
2019-05-04Delegate SmallVec's stable_hash to array's stable_hash.Jesper Steen Møller-3/+1
2019-05-04Hash all of the import_ids for the TraitCandidate.Jesper Steen Møller-0/+12
2019-04-27Auto merge of #60288 - Zoxc:update-rayon, r=nikomatsakisbors-2/+2
Update rustc-rayon version r? @nikomatsakis
2019-04-26Update rustc-rayon versionJohn Kåre Alsaker-2/+2
2019-04-26Use "capacity" as parameter name in with_capacity() methodsMatthias Geier-2/+2
Closes #60271.
2019-04-15Rollup merge of #59648 - alex:must-use-result, r=alexcrichtonMazdak Farrokhzad-6/+6
Add must_use annotations to Result::is_ok and is_err Discussed in #59610
2019-04-14Rollup merge of #59804 - Zoxc:cleaner-jobserver, r=alexcrichtonMazdak Farrokhzad-122/+8
Clean up jobserver integration cc @alexcrichton
2019-04-09Kill dead code dominator code.Edd Barrett-47/+0
2019-04-09Clean up jobserver integrationJohn Kåre Alsaker-122/+8
2019-04-08Add must_use annotations to Result::is_ok and is_errAlex Gaynor-6/+6
2019-03-27Update ena to version 0.13.0varkor-1/+1
2019-03-27Update enavarkor-1/+1
2019-03-13Use derive macro for HashStableJohn Kåre Alsaker-0/+10
2019-03-13Fix newtype_indexJohn Kåre Alsaker-2/+6
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-0/+175
2019-03-09Rollup merge of #58679 - Zoxc:passes-refactor, r=michaelwoeristerMazdak Farrokhzad-7/+54
Refactor passes and pass execution to be more parallel For `syntex_syntax` (with 16 threads and 8 cores): - Cuts `misc checking 1` from `0.096s` to `0.08325s`. - Cuts `misc checking 2` from `0.3575s` to `0.2545s`. - Cuts `misc checking 3` from `0.34625s` to `0.21375s`. - Cuts `wf checking` from `0.3085s` to `0.05025s`. Reduces overall execution time for `syntex_syntax` (with 8 threads and cores) from `4.92s` to `4.34s`. Subsumes https://github.com/rust-lang/rust/pull/58494 Blocked on https://github.com/rust-lang/rust/pull/58250 r? @michaelwoerister
2019-03-08expand unused doc comment diagnosticAndy Russell-5/+25
Report the diagnostic on macro expansions, and add a label indicating why the comment is unused.
2019-03-06Add some commentsJohn Kåre Alsaker-1/+7
2019-03-06Execute all parallel blocks even if they panic in a single-threaded compilerJohn Kåre Alsaker-1/+41
2019-03-06Run the first block in a parallel! macro directly in the scope which ↵John Kåre Alsaker-5/+6
guarantees that it will run immediately
2019-03-02Bootstrap compiler update for 1.35 releaseMark Rousskov-2/+1
2019-03-01Address commentsJohn Kåre Alsaker-5/+8
2019-03-01Add support for using a jobserver with RayonJohn Kåre Alsaker-2/+158
2019-02-22Update parking_lot to 0.7Bastien Orivel-1/+1
Unfortunately this'll dupe parking_lot until the data_structures crate is published and be updated in rls in conjunction with crossbeam-channel
2019-02-15Always emit an error for a query cycleJohn Kåre Alsaker-0/+6
2019-02-12Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnikbors-61/+61
Cosmetic improvements to doc comments This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase). r? @steveklabnik Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-11Use `allow_internal_unstable` in rustc itselfOliver Scherer-1/+2
2019-02-10rustc: doc commentsAlexander Regueiro-61/+61
2019-02-09librustc_data_structures => 2018Taiki Endo-107/+86
2019-02-07Rollup merge of #58185 - GuillaumeGomez:images-url, r=SimonSapinGuillaume Gomez-3/+1
Remove images' url to make it work even without internet connection Needed for local std docs mainly. cc @SimonSapin r? @QuietMisdreavus
2019-02-07Remove images' url to make it work even without internet connectionGuillaume Gomez-3/+1