about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-10-04Generate ScopeId using newtype_index macroSantiago Pastorino-14/+3
2017-10-04Generate SerializedDepNodeIndex using newtype_index macroSantiago Pastorino-18/+2
2017-10-04Generate DepNodeIndexNew using newtype_index macroSantiago Pastorino-1/+10
2017-10-04Make newtype_index get debug_name using reflectionSantiago Pastorino-1/+6
2017-10-04Make newtype_index macro use full path to resolve constantsSantiago Pastorino-5/+3
2017-10-04Generate Idx in nll using newtype_index!Santiago Pastorino-16/+7
2017-10-04Move newtype_index to rustc_data_structuresSantiago Pastorino-25/+26
2017-10-04Convert regions to IndexVecSantiago Pastorino-2/+19
2017-10-04Store a new Region value every time we create a new region variablePaul Faria-2/+11
2017-10-04Auto merge of #44901 - michaelwoerister:on-demand-eval, r=nikomatsakisbors-2371/+1088
incr.comp.: Switch to red/green change tracking, remove legacy system. This PR finally switches incremental compilation to [red/green tracking](https://github.com/rust-lang/rust/issues/42293) and completely removes the legacy dependency graph implementation -- which includes a few quite costly passes that are simply not needed with the new system anymore. There's still some documentation to be done and there's certainly still lots of optimizing and tuning ahead -- but the foundation for red/green is in place with this PR. This has been in the making for a long time `:)` r? @nikomatsakis cc @alexcrichton, @rust-lang/compiler
2017-10-04Auto merge of #44890 - nvzqz:str-box-transmute, r=alexcrichtonbors-31/+32
Remove mem::transmute used in Box<str> conversions Given that https://github.com/rust-lang/rust/pull/44877 is failing, I decided to make a separate PR. This is done with the same motivation: to avoid `mem::transmute`-ing non `#[repr(C)]` types.
2017-10-04Auto merge of #44882 - mikhail-m1:master, r=pnkfelixbors-136/+150
add notes to report_conflicting_borrow MIR borrowck part of #44596
2017-10-04incr.comp.: Address review comments.Michael Woerister-31/+71
2017-10-04add notes to report_conflicting_borrow MIR borrowckMikhail Modin-136/+150
2017-10-04Auto merge of #44905 - Pirh:process_abort_docs, r=steveklabnikbors-2/+13
Update docs for process::abort Remove a typo and explain the relationship to `panic!`. Part of #29370 r? @steveklabnik
2017-10-04Auto merge of #44999 - pnkfelix:mir-borrowck-fix-assert-left-right, ↵bors-10/+38
r=nikomatsakis Overlapping borrows can point to different lvalues. Overlapping borrows can point to different lvalues. There's always a basis for the overlap, so instead of removing the assert entirely, I instead pass in the prefix that we found and check that it actually is a prefix of both lvalues. Fix #44829
2017-10-04Auto merge of #44979 - hinaria:master, r=dtolnaybors-0/+13
make `backtrace = false` compile for windows targets. when building for windows with `backtrace = false`, `libstd` fails to compile because some modules that use items from `sys_common::backtrace::*` are still included, even though those modules aren't used or referenced by anything. `sys_common::backtrace` doesn't exist when the backtrace feature is turned off. -- i've also added `#[cfg(feature = "backtrace")]` to various items that exist exclusively to support `mod backtrace` since the compilation would fail since they would be unused in a configuration with backtraces turned off.
2017-10-03Auto merge of #44895 - stephaneyfx:master, r=dtolnaybors-7/+22
Made `fs::copy` return the length of the main stream On Windows with the NTFS filesystem, `fs::copy` would return the sum of the lengths of all streams, which can be different from the length reported by `metadata` and thus confusing for users unaware of this NTFS peculiarity. This makes `fs::copy` return the same length `metadata` reports which is the value it used to return before PR #26751. Note that alternate streams are still copied; their length is just not included in the returned value. This change relies on the assumption that the stream with index 1 is always the main stream in the `CopyFileEx` callback. I could not find any official document confirming this but empirical testing has shown this to be true, regardless of whether the alternate stream is created before or after the main stream. Resolves #44532
2017-10-03Auto merge of #44949 - QuietMisdreavus:rustdoctest-dirs, r=nikomatsakisbors-0/+21
let htmldocck.py check for directories Since i messed this up during https://github.com/rust-lang/rust/pull/44613, i wanted to codify this into the rustdoc tests to make sure that doesn't happen again.
2017-10-03Auto merge of #44922 - zilbuz:issue-44596/E0594, r=pnkfelixbors-48/+84
MIR borrowck: move span_label to `borrowck_errors.rs` The calls to `span_label` are moved and factorized for: * E0503 (`cannot_use_when_mutably_borrowed()`) * E0506 (`cannot_assign_to_borrowed()`) Additionnally, the error E0594 (`cannot_assign_static()`) has been factorized between `check_loan.rs` and `borrowc_check.rs`. Part of #44596
2017-10-03Auto merge of #44896 - qmx:move-resolve-to-librustc, r=arielb1bors-136/+273
Move monomorphize::resolve() to librustc this moves `monomorphize::resolve(..)` to librustc, and re-enables inlining for some trait methods, fixing #44389 @nikomatsakis I've kept the calls to the new `ty::Instance::resolve(....)` always `.unwrap()`-ing for the moment, how/do you want to add more debugging info via `.unwrap_or()` or something like this? we still have some related `resolve_*` functions on monomorphize, but I wasn't sure moving them was into the scope for this PR too. @eddyb mind to take a look too?
2017-10-03Overlapping borrows can point to different lvalues.Felix S. Klock II-10/+38
There's always a basis for the overlap, so instead of removing the assert entirely, I instead pass in the prefix that we found and check that it actually is a prefix of both lvalues. Fix #44829
2017-10-03incr.comp.: Fix some merge fallout.Michael Woerister-3/+8
2017-10-03Auto merge of #44920 - vi:rustdoc_implementors_src_link, r=GuillaumeGomezbors-15/+61
rustdoc: Render [src] links for trait implementors Should close #43893. <s>No tests [yet].</s> r? @QuietMisdreavus
2017-10-03Auto merge of #44966 - zackmdavis:no_mangle_no_snake, r=aturonbors-1/+24
make non_snake_case lint allow extern no-mangle functions Resolves #31924. r? @sfackler
2017-10-02Auto merge of #44977 - steveklabnik:update-mdbook, r=alexcrichtonbors-18/+18
update mdbook Fixes #44704
2017-10-02Document that process::abort will not call the panic hookPirh-1/+3
2017-10-02Auto merge of #44885 - lu-zero:master, r=alexcrichtonbors-0/+120
More Altivec Intrinsics Float-specific intrinsics
2017-10-03windows: make `backtrace = false` compilehinaria-0/+13
2017-10-02update mdbooksteveklabnik-18/+18
Fixes #44704
2017-10-02incr.comp.: Do some cleanup.Michael Woerister-3/+4
2017-10-02incr.comp.: Remove legacy dep-graph runtime.Michael Woerister-386/+87
2017-10-02rustdoc: Remove cruft from the testVitaly _Vi Shukela-14/+4
per @GuillaumeGomez's sample, but with one change.
2017-10-02incr.comp.: Remove saving and loading of legacy dep-graph.Michael Woerister-1622/+66
2017-10-02incr.comp.: Build DepGraphQuery from new dep-graph impl.Michael Woerister-14/+14
2017-10-02incr.comp.: Use red/green tracking for CGU re-use.Michael Woerister-246/+206
2017-10-02incr.comp.: Add some logging to DepGraph::try_mark_green().Michael Woerister-4/+32
2017-10-02incr.comp.: Make some DepNodes non-anonymous.Michael Woerister-59/+36
2017-10-02incr.comp.: Re-execute queries during red/green marking in order to find out ↵Michael Woerister-92/+397
their color.
2017-10-02incr.comp.: Add minimal version of try_mark_green procedure.Michael Woerister-56/+268
2017-10-02incr.comp.: Determine red/green state of every new node.Michael Woerister-12/+56
2017-10-02Auto merge of #44959 - arielb1:generic-errors, r=eddybbors-14/+133
handle nested generics in Generics::type_param/region_param Fixes #44952. r? @eddyb
2017-10-02fix handling of `Self`Ariel Ben-Yehuda-26/+79
2017-10-02Auto merge of #44942 - zackmdavis:lint_suggestions, r=estebankbors-20/+153
code suggestions for unused-mut, while-true, deprecated-attribute, and unused-parens lints ![lint_suggestions](https://user-images.githubusercontent.com/1076988/31044068-b2074de8-a57c-11e7-9319-6668508b6d1f.png) r? @estebank
2017-10-01correct unused-parens lint suggestion to strip exact pairZack M. Davis-1/+51
2017-10-02Auto merge of #44960 - SeanPrashad:master, r=steveklabnikbors-5/+1
Resolves #36284 - vec.rs documentation Removed comments associated with `[into_vec]` being equivalent to `[shrink_to_fit]` as requested.
2017-10-01make non_snake_case lint allow extern no-mangle functionsZack M. Davis-1/+24
Resolves #31924.
2017-10-01Auto merge of #44955 - laumann:small-typo-fix, r=steveklabnikbors-2/+2
Fix typo: geneartor -> generator
2017-10-01fix handling of SelfAriel Ben-Yehuda-5/+14
2017-10-01Auto merge of #44919 - diwic:79-pretty-mir, r=arielb1bors-1/+3
Mir pretty print: Add cleanup comment I found it useful to add a comment indicating whether or not a BasicBlock is a cleanup block or not. Hopefully you'll find it useful too.