about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-10-27Update license exceptions.kennytm-5/+2
The `zircon` crates have been renamed as `fuchsia-zircon`.
2017-10-26Bump to 1.23 and update bootstrapAlex Crichton-279/+282
This commit updates the bootstrap compiler, bumps the version to 1.23, updates Cargo, updates books, and updates crates.io dependencies
2017-10-26Auto merge of #45380 - dotdash:arg_copies, r=arielb1bors-122/+145
Avoid unnecessary copies of arguments that are simple bindings Initially MIR differentiated between arguments and locals, which introduced a need to add extra copies assigning the argument to a local, even for simple bindings. This differentiation no longer exists, but we're still creating those copies, bloating the MIR and LLVM IR we emit. Additionally, the current approach means that we create debug info for both the incoming argument (marking it as an argument), and then immediately shadow it a local that goes by the same name. This can be confusing when using e.g. "info args" in gdb, or when e.g. a debugger with a GUI displays the function arguments separately from the local variables, especially when the binding is mutable, because the argument doesn't change, while the local variable does.
2017-10-26Add comments to clarify function argument ownershipBjörn Steinbrink-1/+5
2017-10-26Avoid unnecessary copies of arguments that are simple bindingsBjörn Steinbrink-121/+140
Initially MIR differentiated between arguments and locals, which introduced a need to add extra copies assigning the argument to a local, even for simple bindings. This differentiation no longer exists, but we're still creating those copies, bloating the MIR and LLVM IR we emit. Additionally, the current approach means that we create debug info for both the incoming argument (marking it as an argument), and then immediately shadow it a local that goes by the same name. This can be confusing when using e.g. "info args" in gdb, or when e.g. a debugger with a GUI displays the function arguments separately from the local variables, especially when the binding is mutable, because the argument doesn't change, while the local variable does.
2017-10-26Auto merge of #45488 - oli-obk:ctfe_resolve, r=eddybbors-92/+38
Resolve types properly in const eval r? @eddyb cc @arielb1
2017-10-26Auto merge of #45464 - sinkuu:ice_44851, r=jseyfriedbors-2/+82
Visit attribute tokens in `DefCollector` and `BuildReducedGraphVisitor` Fixes #44851.
2017-10-26Auto merge of #45096 - DSpeckhals:update-rls-data-for-save-analysis, ↵bors-59/+27
r=alexcrichton Update rls-data for save analysis rls-data: 0.10 -> 0.11 This will allow for more fine-grained save analysis for enum variants (tuple and struct). The first commit updates rls-data, and makes the changes to dump_visitor. The second commit updates the rls submodule, and removes "members" that were deleted from that update in src/Cargo.toml. Note, that when building the project, rustfmt-nightly was updated in Cargo.lock. If these changes should be excluded, I can revert it. cc/ @nrc
2017-10-26Add FIXMEsinkuu-0/+1
2017-10-25Auto merge of #45532 - kennytm:rollup, r=kennytmbors-32/+101
Rollup of 7 pull requests - Successful merges: #45059, #45212, #45398, #45483, #45496, #45508, #45526 - Failed merges:
2017-10-26Rollup merge of #45526 - alexcrichton:test-more-asm, r=aturonkennytm-1/+1
ci: Test more asmjs again This was accidentally added in #45352, forgot to back it out!
2017-10-26Rollup merge of #45508 - bgermann:master, r=alexcrichtonkennytm-0/+1
Disable jemalloc for sparcv9-sun-solaris Similar to #36994, rust programs segfault on SPARC64 Solaris machines.
2017-10-26Rollup merge of #45496 - kennytm:bootstrap-fix-extension-check, r=alexcrichtonkennytm-4/+12
rustbuild: Fix `no output generated` error for next bootstrap cargo. Due to rust-lang/cargo#4570, a `*.dll.lib` file is uplifted when building dynamic libraries on Windows. The current bootstrap code does not understand files with multiple extensions, and will instead assume `xxxx.dll` is the file name. This caused a `no output generated` error because it tries to search for `xxxx.dll-hash.lib` inside the `deps/` folder, while it should check for `xxxx-hash.dll.lib` instead. This PR is blocking #45285, see https://github.com/rust-lang/rust/pull/45285#issuecomment-338454149 and the rest of the comments for detail.
2017-10-26Rollup merge of #45483 - mbrubeck:hash, r=alexcrichtonkennytm-4/+32
Implement Hash for raw pointers to unsized types This is useful for some niche cases, like a hash table of slices or trait objects where the key is the raw pointer. Example use case: https://docs.rs/by_address
2017-10-26Rollup merge of #45398 - integer32llc:reassignment, r=arielb1kennytm-21/+21
Correct misspelling in error text: re-assignment => reassignment [reassignment is the correct spelling](https://www.thefreedictionary.com/reassignment) rather than re-assignment; this error message looks silly in the book next to text trying to be grammatically correct :-/ Will this cause any stability/backcompat type issues?
2017-10-26Rollup merge of #45212 - GuillaumeGomez:sidebar-fixed, r=QuietMisdreavuskennytm-2/+3
Limit the sidebar height The sidebar is now fixed, which means its scrolling is independent of the main page now. r? @rust-lang/docs
2017-10-26Rollup merge of #45059 - tmccombs:pid, r=alexcrichtonkennytm-0/+31
Add current_pid function Fixes #44971
2017-10-25Auto merge of #44636 - GuillaumeGomez:little-error-msg, r=michaelwoeristerbors-149/+223
Add short error message-format Fixes #42653.
2017-10-25Implement Hash for raw pointers to unsized typesMatt Brubeck-4/+32
2017-10-25ci: Test more asmjs againAlex Crichton-1/+1
This was accidentally added in #45352, forgot to back it out!
2017-10-25Auto merge of #45513 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-3/+257
Rollup of 5 pull requests - Successful merges: #45361, #45461, #45465, #45486, #45502 - Failed merges:
2017-10-25Reword to avoid using either re-assignment or reassignment in errorsCarol (Nichols || Goulding)-21/+21
2017-10-25Auto merge of #45476 - Xanewok:fingerprint-disambiguator, r=michaelwoeristerbors-65/+94
Use 128 bit instead of Symbol for crate disambiguator As discussed on gitter, this changes `crate_disambiguator` from Strings to what they are represented as, a 128 bit number. There's also one bit I think also needs to change, but wasn't 100% sure how: [create_root_def](https://github.com/rust-lang/rust/blob/f338dba29705e144bad8b2a675284538dd514896/src/librustc/hir/map/definitions.rs#L468-L482). Should I change `DefKey::root_parent_stable_hash` to accept `Fingerprint` as crate_disambiguator to quickly combine the hash of `crate_name` with the new 128 bit hash instead of a string for a disambiguator? r? @michaelwoerister EDIT: Are those 3 tests `mir-opt` failing, because the hash is different, because we calculate it a little bit differently (storing directly instead of hashing the hex-string representation)? Should it be updated like in #45319?
2017-10-25Add a regression test for the const eval type resolutionOliver Schneider-0/+28
2017-10-25Resolve types properly in const evalOliver Schneider-92/+10
2017-10-25Rollup merge of #45502 - GuillaumeGomez:show-src-on-mobile, r=QuietMisdreavusGuillaume Gomez-2/+6
Show src button and function version on mobile version Fixes #45498. <img width="1440" alt="screen shot 2017-10-24 at 22 36 09" src="https://user-images.githubusercontent.com/3050060/31966689-c0070404-b90b-11e7-8810-810fa0491eda.png"> r? @rust-lang/docs
2017-10-25Rollup merge of #45486 - oli-obk:patch-9, r=kennytmGuillaume Gomez-0/+2
Update docs for Diagnostic::span_suggestion(s)
2017-10-25Rollup merge of #45465 - glaubitz:sparc64, r=alexcrichtonGuillaume Gomez-0/+1
bootstrap: Add openssl configuration for sparc64-unknown-linux-gnu Hi! This adds the target missing mapping for sparc64-unknown-linux-gnu. See: https://github.com/rust-lang/rust/issues/45456 Thanks
2017-10-25Rollup merge of #45461 - wesleywiser:intrinsics_docs, r=dtolnayGuillaume Gomez-0/+7
Two small enhancements to intrinsics docs
2017-10-25Rollup merge of #45361 - GuillaumeGomez:fs-docs, r=QuietMisdreavusGuillaume Gomez-1/+241
Add missing code examples r? @rust-lang/docs
2017-10-25Auto merge of #45473 - SimonSapin:variance-red-green, r=nikomatsakisbors-50/+11
Remove dependency tracking for variance computation This custom tracking is now replaced by the red/green algorithm. Fix https://github.com/rust-lang/rust/issues/45471
2017-10-25Auto merge of #45455 - kennytm:print-extern-impl-for-e0119, r=nikomatsakisbors-2/+428
Improve diagnostic of E0119 with extern crate, try to print the conflicting impl. Closes #27403. Closes #23563. Should improve #23980. The diagnostic now looks like: ``` error[E0119]: conflicting implementations of trait `std::convert::Into<_>` for type `GenX<_>`: --> $DIR/issue-27403.rs:15:1 | 15 | / impl<S> Into<S> for GenX<S> { 16 | | fn into(self) -> S { 17 | | self.inner 18 | | } 19 | | } | |_^ | = note: conflicting implementation in crate `core`: - impl<T, U> std::convert::Into<U> for T where U: std::convert::From<T>; error: aborting due to previous error ```
2017-10-24Update RLS with skip of failing testDustin Speckhals-0/+0
2017-10-24Merge branch 'master' into update-rls-data-for-save-analysisDustin Speckhals-6748/+14995
2017-10-24Auto merge of #44603 - SimonSapin:stylo, r=alexcrichtonbors-5/+55
Add Stylo and WebRender to src/tools/cargotest This is a subset of Servo that takes relatively less time to compile and does not use unstable Rust features.
2017-10-25Disable jemalloc for sparcv9-sun-solarisbgermann-0/+1
Similar to #36994, rust programs segfault on SPARC64 Solaris machines.
2017-10-24Auto merge of #45446 - leodasvacas:remove-libcollections, r=alexcrichtonbors-97/+1
Remove deprecated `collections` crate. The real `collections` was merged with `alloc`, this facade was introduced [in this PR](https://github.com/rust-lang/rust/pull/42720) to give `#[no_std]` users time to adapt. This was done at least two cycles ago, now we can consider removing it for good.
2017-10-24Show src button and function version on mobile versionGuillaume Gomez-2/+6
2017-10-24Fix doc build on other architectures than linuxGuillaume Gomez-17/+17
2017-10-24Add WebRender to cargotestSimon Sapin-1/+12
2017-10-24Add Stylo to cargotestSimon Sapin-0/+9
2017-10-24Fix the sidebar heightGuillaume Gomez-2/+3
2017-10-24Set rustfmt broken while waiting for the update of their sideGuillaume Gomez-1/+1
2017-10-25rustbuild: Fix `no output generated` error for next bootstrap cargo.kennytm-4/+12
Due to rust-lang/cargo#4570, a `*.dll.lib` file is uplifted when building dynamic libraries on Windows. The current bootstrap code does not understand files with multiple extensions, and will instead assume `xxxx.dll` is the file name. This caused a `no output generated` error because it tries to search for `xxxx.dll-hash.lib` inside the `deps/` folder, while it should check for `xxxx-hash.dll.lib` instead. This PR is blocking #45285 (Bump to 1.23 and update bootstrap).
2017-10-24Introduce CrateDisambiguator newtype and fix testsIgor Matuszewski-59/+87
2017-10-24Auto merge of #45350 - cjkenn:cjkenn/used-trait-imports, r=nikomatsakisbors-10/+28
Put used trait imports field into a distinct query Implementation for #45214 r+ @nikomatsakis
2017-10-24Auto merge of #45401 - zackmdavis:crate_shorthand_visibility_modifier, ↵bors-10/+97
r=nikomatsakis `crate` shorthand visibility modifier cc #45388. r? @nikomatsakis
2017-10-24Update docs for Diagnostic::span_suggestion(s)Oliver Schneider-0/+2
2017-10-24bootstrap: Add openssl configuration for sparc64-unknown-linux-gnuJohn Paul Adrian Glaubitz-0/+1
2017-10-24Auto merge of #44984 - Maaarcocr:master, r=nikomatsakisbors-39/+37
Create NormalizeTy query As part of the effort to solve #44891, I've created the normalize_ty query. As outlined in the issue this meant: - renamed `normalize_associated_type()` to `normalize_associated_type_in()` - created the `normalize_ty` query - substituted the use of memoize with the query This PR is not ready. While running tests, one of the incremental ones failed. [This](https://pastebin.com/vGhH6bv6) is the error I got.