summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-10-09Prepare the 1.21.0 stable releaseAlex Crichton-1/+1
This prepares CI to produce the 1.21.0 stable release, turned out we didn't need many more changes other than this!
2017-10-06Merge remote-tracking branch 'origin/beta' into beta-nextAlex Crichton-33/+100
2017-10-06Update cargo to rust-1.21.0 branchAlex Crichton-0/+0
2017-10-06Update liblibc submodule againAlex Crichton-19/+4
2017-10-06tweak test case error message for #42023Niko Matsakis-3/+3
2017-10-06Revert "Cleanup some remains of `hr_lifetime_in_assoc_type` compatibility lint"Niko Matsakis-111/+298
This reverts commit 80cf3f99f4a3377fd9b544d18017ef29b8713dfd.
2017-10-06fix logic error in #44269's `prune_cache_value_obligations`Ariel Ben-Yehuda-1/+1
We want to retain obligations that *contain* inference variables, not obligations that *don't contain* them, in order to fix #43132. Because of surrounding changes to inference, the ICE doesn't occur in its original case, but I believe it could still be made to occur on master. Maybe I should try to write a new test case? Certainly not right now (I'm mainly trying to get us a beta that we can ship) but maybe before we land this PR on nightly? This seems to cause a 10% performance regression in my imprecise attempt to benchmark item-body checking for #43613, but it's better to be slow and right than fast and wrong. If we want to recover that, I think we can change the constrained-type-parameter code to actually give a list of projections that are important for resolving inference variables and filter everything else out.
2017-10-04Update cargo on betaCarol (Nichols || Goulding)-0/+0
Backporting to beta for https://github.com/rust-lang/cargo/pull/4551 in order to enable better messages for owner invitations sooner.
2017-10-02Auto merge of #44918 - michaelwoerister:backport-44215, r=alexcrichtonbors-32/+74
Backport of #44215 Backport of https://github.com/rust-lang/rust/pull/44215. r? @alexcrichton cc @nikomatsakis
2017-09-29Prevent suggestions from being emitted if all possible locations are inside ↵Oliver Schneider-15/+23
expansions
2017-09-29WIP: don't suggest placing `use` statements into expanded codeOliver Schneider-9/+23
2017-09-29Add test for broken suggestionOliver Schneider-9/+29
2017-09-28update prerelease versionNiko Matsakis-1/+1
2017-09-28update commentNiko Matsakis-7/+18
2017-09-28add in a "paranoid" trait boundNiko Matsakis-0/+34
2017-09-28limit and clear cache obligations opportunisticallyNiko Matsakis-8/+111
Keep **all** the obligations for every projection is wasteful of memory and compilation time. We only really care about those subobligations that may inform the result of the projection (i.e., may help to resolve any inference variables that appear within). Therefore, we can clear the subobligations from the cache that don't potentially affect the result of the projection. On every cache hit, we also take the opportunity to check if the type variables have been resolved *yet* and, if so, clear out the pending obligations. Fixes #43613
2017-09-28clear out projection subobligations after they are processedAriel Ben-Yehuda-19/+112
After a projection was processed, its derived subobligations no longer need any processing when encountered, and can be removed. This improves the status of #43787. This is actually complementary to #43938 - that PR fixes selection caching (and @remram44's example, which "accidentally" worked because of the buggy projection caching) while this PR fixes projection caching
2017-09-28Update the libc submoduleAlex Crichton-12/+29
Brings in a few fixes for wasm/asmjs
2017-09-28`--cap-lints allow` switches off `can_emit_warnings`Zack M. Davis-3/+29
This boolean field on the error `Handler` is toggled to silence warnings when `-A warnings` is passed. (This is actually a separate mechanism from the global lint level—whether there's some redundancy to be factored away here is an important question, but not one we concern ourselves with in this commit.) But the same rationale applies for `--cap-lints allow`. In particular, this makes the "soft" feature-gate warning introduced in 8492ad24 (which is not a lint, but just calls `struct_span_warn`) not pollute the builds of dependent crates. Thanks to @kennytm for pointing out the potential of `can_emit_warnings` for this purpose. Resolves #44213.
2017-09-28Fix bug in collecting trait and impl items with derives.Jeffrey Seyfried-6/+29
2017-09-28Allow unused extern crate againDavid Tolnay-1/+1
This is a partial revert of #42588. There is a usability concern reported in #44294 that was not considered in the discussion of the PR, so I would like to back this out of 1.21. As is, I think users would have a worse and more confusing experience with this lint enabled by default. We can re-enabled once there are better diagnostics or the case in #44294 does not trigger the lint.
2017-09-26Add a run-pass-valgrind test for vecdeque issueSteven Fackler-0/+25
(cherry picked from commit 81bac74c2ddc6c39f3628a36966f4a56a1282d02)
2017-09-26Fix capacity comparison in reserveSteven Fackler-1/+1
You can otherwise end up in a situation where you don't actually resize but still call into handle_cap_increase which then corrupts head/tail. Closes #44800 (cherry picked from commit 9733463d2b141a166bfa2f55ec316066ab0f71b6)
2017-09-25Use the new String::splice tracking issue for string::SpliceDavid Tolnay-6/+6
I backported the stabilization of Vec::splice and the move of String::splice to the new tracking issue, but not the new signature of String::splice in 1.22. This combination requires updating the tracking issue on some code that no longer exists in nightly.
2017-09-25Backport libs stabilizations to 1.21 betaDavid Tolnay-12/+12
This includes the following stabilizations: - tcpstream_connect_timeout https://github.com/rust-lang/rust/pull/44563 - iterator_for_each https://github.com/rust-lang/rust/pull/44567 - ord_max_min https://github.com/rust-lang/rust/pull/44593 - compiler_fences https://github.com/rust-lang/rust/pull/44595 - needs_drop https://github.com/rust-lang/rust/pull/44639 - vec_splice https://github.com/rust-lang/rust/pull/44640
2017-09-24Updated tracking issue for String::splice and its unstable-book entryMichal Budzynski-5/+4
2017-09-24stabilized vec_splice (fixes #32310)Michal Budzynski-10/+9
2017-09-24stabilized needs_drop (fixes #41890)Michal Budzynski-4/+1
2017-09-24ci: Upload/download from a new S3 bucketAlex Crichton-7/+9
Moving buckets from us-east-1 to us-west-1 because us-west-1 is where rust-central-station itself runs and in general is where we have all our other buckets.
2017-09-24Added more text from unstable-book to `compiler_fence` docsMichal Budzynski-4/+19
2017-09-24Added example to `compiler_fence` docs taken from unstable-bookMichal Budzynski-0/+34
2017-09-24stabilized compiler_fences (fixes #41091)Michal Budzynski-107/+1
2017-09-24stabilized iterator_for_each (closes #42986)Michal Budzynski-22/+1
updated clippy and rls as it uses the iterator_for_each
2017-09-24stabilized ord_max_min (fixes #25663)Michal Budzynski-7/+2
2017-09-24travis: Move sccache to the us-west-1 regionAlex Crichton-6/+7
Most of the other rust-lang buckets are in us-west-1 and I think the original bucket was just accidentally created in the us-east-1 region. Let's consolidate by moving it to the same location as the rest of our buckets.
2017-09-24stabilize tcpstream_connect_timeout (closes #43079)Michal Budzynski-1/+1
2017-09-14Bump beta to .3Alex Crichton-1/+1
2017-09-14Attempt to fix the component manifest problem for rls-previewNick Cameron-4/+13
cc #44270
2017-09-14update "since" for discriminant_valueAlex Burka-8/+8
It's going to be backported to beta.
2017-09-14rustc: Spawn `cmd /c emcc.bat` explicitlyAlex Crichton-2/+20
In #42436 the behavior for spawning processes on Windows was tweaked slightly to fix various bugs, but this caused #42791 as a regression, namely that to spawn batch scripts they need to be manually spawned with `cmd /c` instead now. This updates the compiler to handle this case explicitly for Emscripten. Closes #42791
2017-09-14Include rustc in the default `./x.py install`Josh Stone-1/+1
The default install used to include rustc, rust-std, and rust-docs, but the refactoring in commit 6b3413d825fa6 make rustc only default in extended builds. This commit makes rustc installed by default again.
2017-09-14stabilize mem::discriminant (closes #24263)Alex Burka-15/+8
2017-09-01[beta] Boostrap from released compilersAlex Crichton-2/+2
No need to use dev any more!
2017-09-01Bump beta to .2Alex Crichton-1/+1
2017-09-01rustbuild: Fix dependencies of build-manifestAlex Crichton-1/+1
No need to depend on librustc! All we need is libstd Closes #44140
2017-09-01bootstrap: remove unneeded extern crateTatsuyuki Ishi-1/+0
The crate itself is internally referenced by serde_derive.
2017-09-01std: Mark allocation functions as nounwindAlex Crichton-0/+68
This commit flags all allocation-related functions in liballoc as "this can't unwind" which should largely resolve the size-related issues found on #42808. The documentation on the trait was updated with such a restriction (they can't panic) as well as some other words about the relative instability about implementing a bullet-proof allocator. Closes #42808
2017-09-01Auto merge of #44204 - nrc:beta, r=alexcrichtonbors-3/+456
RLS on beta Reverts the RLS backout commit, updates the RLS to the beta branch (which includes a relative path dep for Cargo and sets the version to 0.121, plus fixes a bug I was having running tests on the beta branch), and backports #44141 (renaming rls component to rls-preview). r? @alexcrichton
2017-08-31Auto merge of #44148 - arielb1:closure-key-beta, r=nikomatsakisbors-59/+113
[beta] Track closure signatures & kinds in freshened types This allows caching closure signatures and kinds in the normal selection and evaluation caches, and fixes the exponential worst-case in @remram44's example, which is a part of #43787. This improvement is complenentary to #43999 - they fix different cases. This is the pre-generators variation of #43938, cloned for beta.
2017-08-31Rename the rls component to rls-preview on beta/stableNick Cameron-4/+9