- 03 8月, 2017 6 次提交
-
-
由 bors 提交于
Remove unused FnvHash code None
-
由 bors 提交于
Update RLS and deps This PR further moves towards configuring save-analysis using the rls-data Config struct. We remove completely the concept of api_crate. Updates the RLS so the client is expecting these changes and which pulls in a commit re-enabling all RLS tests (been disabled due to a span error for a while).
-
由 Nick Cameron 提交于
-
由 bors 提交于
Emphasise that these functions look at the disk, not just the path I thought that `PathBuf::new("foo/bar/").is_dir()` is always true, because the path ends in `/`. However, this is not what `is_dir()` function does. So I've updated the docs to make it clear.
-
由 Matt Brubeck 提交于
-
由 bors 提交于
Remove unecessary test code #43219 related #43219
-
- 02 8月, 2017 32 次提交
-
-
由 Kornel 提交于
-
由 bors 提交于
Improve hir::map::Map::get_parent_node doc The documentation says ``` /// Similar to get_parent, returns the parent node id or id if there is no /// parent. /// This function returns the immediate parent in the AST, whereas get_parent /// returns the enclosing item. ``` One would think that one can walk up the tree by repeatedly calling `get_parent_node` until it returns the argument, and then work on the `NodeId`s that arise. However, that is not true: `get_parent_node` will return id 0 (the crate itself) for items that sit directly in the crate; calling `get` on that `NodeId` will panic. So, the fact that `get_parent_node` returns the root when passed the root is actually not really useful, because the root itself is already a somewhat degenerate node. This improves the doc so hopefully people writing code that "walks up the tree" don't run into this issue like I did...
-
由 bors 提交于
incr.comp.: Properly incorporate symbol linkage and visibility into CGU hash. This PR fixes the way the CGU hash for incr. comp. is computed. The CGU hash represents which `TransItems` are emitted into which codegen unit with which linkage and visibility. Before the new, LLVM-independent symbol internalizer the CGU hash did not accurately contain `TransItem` linkage and visibility because we would not enable symbol internalization in incremental mode anyway. The new internalizer is also run in incremental mode which uncovered the inaccuracy of CGU hashing. Luckily, the fix is rather simple. r? @EddyB cc @nikomatsakis
-
由 Michael Woerister 提交于
-
由 bors 提交于
rustdoc: shrink headings in non-top-level docblocks Headings in per-method docs are often bigger than the function names/signatures themselves, so this tones those down to accentuate the methods. ![screenshot of this change on Vec::swap_remove](https://user-images.githubusercontent.com/5217170/28849380-6116a830-76dc-11e7-8ce2-04433d09463a.png) Fixes #17193
-
由 Nick Cameron 提交于
-
由 Nick Cameron 提交于
-
由 Nick Cameron 提交于
-
由 bors 提交于
Rollup of 6 pull requests - Successful merges: #43389, #43423, #43581, #43585, #43597, #43598 - Failed merges:
-
由 Mario Idival 提交于
-
由 Ralf Jung 提交于
-
由 QuietMisdreavus 提交于
-
由 Corey Farwell 提交于
Derive `Hash` on `AssociatedKind`. This is a trivial change useful in downstream code poking in rustc's innards, in particular the semver verification tool I'm currently working on. r? @EddyB
-
由 Corey Farwell 提交于
Fix the Solaris pthread_t raw type in std to match what's in libc The old type causes failures when building cargo 0.20.0 after rust-lang/libc@8304e06b5.
-
由 Corey Farwell 提交于
Improve docs & doc examples for HashSet. None
-
由 Corey Farwell 提交于
rustc: Inline bitwise modification operators These need to be inlined across crates to avoid showing up as one-instruction functions in profiles! In the benchmark from #43578 this decreased the translation item collection step from 30s to 23s, and looks like it also allowed vectorization elsewhere of the operations!
-
由 Corey Farwell 提交于
Add simple docs example for struct Cell
-
由 Corey Farwell 提交于
Thread through the original error when opening archives This updates the management of opening archives to thread through the original piece of error information from LLVM over to the end consumer, trans.
-
由 bors 提交于
Gate LLVMRustHasFeature on LLVM_RUSTLLVM Commit c4710203 in #43492 make `LLVMRustHasFeature` "more robust" by using `getFeatureTable()`. However, this function is specific to Rust's own LLVM fork, not upstream LLVM-4.0, so we need to use `#if LLVM_RUSTLLVM` to guard this call. Closes #43555.
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 Corey Farwell 提交于
-
由 bors 提交于
rustc_mir: don't build unused unwind cleanup blocks When building a scope exit, don't build unwind cleanup blocks unless they will actually be used by the unwind path of a drop - the unused blocks are removed by SimplifyCfg, but they can cause a significant performance slowdown before they are removed. That fixes #43511. Also a few other small MIR cleanups & optimizations. r? @EddyB
-
由 Inokentiy Babushkin 提交于
This is a trivial change useful in downstream code poking in rustc's innards.
-
由 bors 提交于
add documentation for function pointers as a primitive This PR adds a new kind of primitive to the standard library documentation: Function pointers. It's useful to be able to discuss them separately from closure-trait-objects, and to have something to point to when discussing function pointers as a *type* and not a *trait*. Fixes #17104
-
由 Danek Duvall 提交于
The old type causes failures when building cargo 0.20.0 after changeset 8304e06b5 in the libc repo.
-
由 bors 提交于
Run translation and LLVM in parallel when compiling with multiple CGUs This is still a work in progress but the bulk of the implementation is done, so I thought it would be good to get it in front of more eyes. This PR makes the compiler start running LLVM while translation is still in progress, effectively allowing for more parallelism towards the end of the compilation pipeline. It also allows the main thread to switch between either translation or running LLVM, which allows to reduce peak memory usage since not all LLVM module have to be kept in memory until linking. This is especially good for incr. comp. but it works just as well when running with `-Ccodegen-units=N`. In order to help tuning and debugging the work scheduler, the PR adds the `-Ztrans-time-graph` flag which spits out html files that show how work packages where scheduled: ![Building regex](https://user-images.githubusercontent.com/1825894/28679272-f6752bd8-72f2-11e7-8a6c-56207855ce95.png) (red is translation, green is llvm) One side effect here is that `-Ztime-passes` might show something not quite correct because trans and LLVM are not strictly separated anymore. I plan to have some special handling there that will try to produce useful output. One open question is how to determine whether the trans-thread should switch to intermediate LLVM processing. TODO: - [x] Restore `-Z time-passes` output for LLVM. - [x] Update documentation, esp. for work package scheduling. - [x] Tune the scheduling algorithm. cc @alexcrichton @rust-lang/compiler
-
- 01 8月, 2017 2 次提交
-
-
由 QuietMisdreavus 提交于
-
由 bors 提交于
trans::mir::constant - fix assignment error recovery trans::mir::constant - fix assignment error recovery We used to not store anything when the RHS of an assignment returned an error, which caused ICEs downstream. Fixes #43197.
-