about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-04Add embedded bookJames Munns-4/+19
2019-02-04typosRalf Jung-2/+2
2019-02-04Fix #58101Tatsuyuki Ishi-1/+3
2019-02-03Improve error message and docs for non-UTF-8 bytes in stdio on WindowsAustin Bonander-1/+48
cc #23344
2019-02-04Transition compiletest to Rust 2018Philipp Hansch-47/+39
2019-02-04Auto merge of #58095 - h-michael:cargotest-2018, r=Centrilbors-0/+3
Transition cargotest to Rust 2018 Only updating Cargo.toml #58099
2019-02-04Auto merge of #58090 - ljedrz:HirIdification_phase_2, r=Zoxcbors-17/+125
HirIdification: add key HirId methods This is another PR in a series dedicated to `HirId`-ification, i.e. deprecating `ast::NodeId`s after the AST > HIR lowering process. The bigger proof of concept can be seen in #57578. **Phase 2**: add key `HirId` methods mirroring the `NodeId` ones. These should be counterparts of the most widely used `Hir` methods using `NodeId`s. Note that this expands `hir::map::Definitions` with an additional `hir_to_def_index` map (with the intention of later removing `node_to_def_index`). As a bonus there is also a small cleanup commit removing unnecessary calls to `node_to_hir_id` where `HirId` is already available. r? @Zoxc Cc @varkor
2019-02-04Excute rustfmt for fixing tidy checkHirokazu Hata-55/+86
2019-02-04Transition libtest to 2018 editionHirokazu Hata-20/+22
2019-02-03Fix testMatthias Einwag-1/+1
2019-02-03Apply review suggestions and fix testsMatthias Einwag-78/+163
2019-02-03Apply suggestions from code reviewMazdak Farrokhzad-4/+6
Co-Authored-By: Matthias247 <matthias.einwag@live.com>
2019-02-03Update the future/task APIMatthias Einwag-411/+111
This change updates the future and task API as discussed in the stabilization RFC at https://github.com/rust-lang/rfcs/pull/2592. Changes: - Replacing UnsafeWake with RawWaker and RawWakerVtable - Removal of LocalWaker - Removal of Arc-based Wake trait
2019-02-03hir: remove Definitions::hir_to_def_indexljedrz-27/+5
2019-02-03Auto merge of #58024 - h-michael:update-rls, r=Xanewokbors-0/+0
submodule: update rls from c9d25b to f331ff7 Update rls https://github.com/rust-lang/rls/compare/c9d25b667a...e2145d https://github.com/rust-lang/rls/pull/1276 - h-michael:clippy, r=Xanewok https://github.com/rust-lang/rls/pull/1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok Remove extra backticks in contributing.md https://github.com/rust-lang/rls/pull/1267 from h-michael/contributingmd https://github.com/rust-lang/rls/pull/1268 from matthiaskrgr/rustup https://github.com/rust-lang/rls/pull/1262 from rust-lang/dependabot/cargo/tokio-0.1.15 https://github.com/rust-lang/rls/pull/1264 - h-michael:pub-crate, r=alexheretic https://github.com/rust-lang/rls/pull/1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok https://github.com/rust-lang/rls/pull/1263 - Xanewok:update-clippy, r=Xanewok https://github.com/rust-lang/rls/pull/1257 from Xanewok/architecture https://github.com/rust-lang/rls/pull/1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok https://github.com/rust-lang/rls/pull/1255 - Xanewok:you-only-complete-once-fool, r=Xanewok https://github.com/rust-lang/rls/pull/1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic https://github.com/rust-lang/rls/pull/1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok https://github.com/rust-lang/rls/pull/1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok dependabot: Explicitly list default allowed_updates dependabot: Add automerge strategy for clippy_lints https://github.com/rust-lang/rls/pull/1251 - Xanewok:translate-deglob-test, r=Xanewok https://github.com/rust-lang/rls/pull/1250 from alexheretic/master https://github.com/rust-lang/rls/pull/1244 - Xanewok:translate-tests, r=alexheretic https://github.com/rust-lang/rls/pull/1247 - alexheretic:register-more-clippy, r=Xanewok https://github.com/rust-lang/rls/pull/1230 - emilio:testing-testing, r=Xanewok https://github.com/rust-lang/rls/pull/1246 from alexheretic/did-save-manifest Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
2019-02-03make set return a mutable referenceRalf Jung-1/+4
2019-02-03expand as_[mut_]ptr docs a bitRalf Jung-4/+4
2019-02-03some type-level docs for MaybeUninit; rename into_inner -> into_initializedRalf Jung-6/+47
2019-02-04libunwind => 2018Taiki Endo-7/+8
2019-02-03hir: add HirId methodsljedrz-1/+138
2019-02-04libproc_macro => 2018Taiki Endo-90/+100
2019-02-04libsyntax_pos => 2018Taiki Endo-60/+51
2019-02-03Auto merge of #58081 - Centril:liballoc-2018, r=oli-obkbors-393/+360
Transition liballoc to Rust 2018 This transitions liballoc to Rust 2018 edition and applies relevant idiom lints. I also did a small bit of drive-by cleanup along the way. r? @oli-obk I started with liballoc since it seemed easiest. In particular, adding `edition = "2018"` to libcore gave me way too many errors due to stdsimd. Ideally we should be able to continue this crate-by-crate until all crates use 2018.
2019-02-03Avoid some bounds checks in binary_heap::{PeekMut,Hole}Laurențiu Nicola-3/+8
2019-02-03Auto merge of #58093 - h-michael:clippy, r=Xanewokbors-10/+11
submodule: update clippy from 6ce78d1 to 3bda548 https://github.com/rust-lang/rust-clippy/compare/6ce78d1...3bda548 Rustup: unused trim result Auto merge of #3727 - phansch:rustup_unused_trim, r=matthiaskrgr … Travis: Don't run integration tests on every PR commit … Auto merge of #3726 - phansch:some_renaming, r=oli-obk … Fix ICE in vec_box lint and add run-rustfix … Make vec_box MachineApplicable Remove conditionals from base builds … Adding lint for too many lines. Updating number of lines for the failing test to be > 100. … Running util/dev to update README/CHANGELOG Reworking function logic, and adding doc example. … Moving tests to ui-toml to make use of clippy.toml rustfmt Adding back tests, but also reducing threshold by 1 Updating to just warn for one test. Fix test broken by removing comment. Skipping check if in external macro. Adding lint for too many lines. Updating number of lines for the failing test to be > 100. … Moving tests to ui-toml to make use of clippy.toml rustfmt Adding back tests, but also reducing threshold by 1 Updating to just warn for one test. Fix test broken by removing comment. Changing single character string to a character match. Updated readme. Updating code to ignore rustfmt issue. phansch and avborhanian Update clippy_lints/src/types.rs … Update clippy_lints/src/types.rs … Auto merge of #3732 - phansch:fix_ice_3720, r=oli-obk … Auto merge of #3731 - phansch:travis, r=phansch … Auto merge of #2857 - avborhanian:master, r=phansch … Fix breakage due to rust-lang/rust#58079 … Auto merge of #3736 - mikerite:fix-build-20190203, r=phansch … related with: #58024
2019-02-04Transition build_helper to 2018 editionHirokazu Hata-0/+3
2019-02-03RangeInclusive internal iteration performance improvement.Matthieu M-3/+50
Specialize Iterator::try_fold and DoubleEndedIterator::try_rfold to improve code generation in all internal iteration scenarios. This changes brings the performance of internal iteration with RangeInclusive on par with the performance of iteration with Range: - Single conditional jump in hot loop, - Unrolling and vectorization, - And even Closed Form substitution. Unfortunately, it only applies to internal iteration. Despite various attempts at stream-lining the implementation of next and next_back, LLVM has stubbornly refused to optimize external iteration appropriately, leaving me with a choice between: - The current implementation, for which Closed Form substitution is performed, but which uses 2 conditional jumps in the hot loop when optimization fail. - An implementation using a "is_done" boolean, which uses 1 conditional jump in the hot loop when optimization fail, allowing unrolling and vectorization, but for which Closed Form substitution fails. In the absence of any conclusive evidence as to which usecase matters most, and with no assurance that the lack of Closed Form substitution is not indicative of other optimizations being foiled, there is no way to pick one implementation over the other, and thus I defer to the statu quo as far as next and next_back are concerned.
2019-02-04Transition rustdoc-theme to 2018 editionHirokazu Hata-0/+3
2019-02-04Add the span of attributes of the lhs to the span of the assignment expressiontopecongiro-0/+8
2019-02-04Transition tidy and unstable-book-gento 2018 editionHirokazu Hata-2/+5
2019-02-03librustc_privacy => 2018Mazdak Farrokhzad-8/+6
2019-02-03libpanic_abort => 2018Mazdak Farrokhzad-2/+3
2019-02-03Add NVPTX target into `build-manifest`Denys Zariaiev-0/+1
2019-02-03libgraphviz => 2018Mazdak Farrokhzad-5/+7
2019-02-03libfmt_macros => 2018Mazdak Farrokhzad-6/+8
2019-02-03Transition linkchecker to 2018 editionHirokazu Hata-1/+4
2019-02-03Use 2018 edition for cargotestHirokazu Hata-0/+3
2019-02-03Auto merge of #57922 - davidtwco:issue-57410, r=petrochenkovbors-9/+107
Update visibility of intermediate use items. Fixes #57410 and fixes #53925 and fixes #47816. Currently, the target of a use statement will be updated with the visibility of the use statement itself (if the use statement was visible). This PR ensures that if the path to the target item is via another use statement then that intermediate use statement will also have the visibility updated like the target. This silences incorrect `unreachable_pub` lints with inactionable suggestions.
2019-02-03Transition remote-test-server to 2018 editionHirokazu Hata-0/+1
2019-02-03Transition remote-test-client to 2018 editionHirokazu Hata-0/+1
2019-02-03POSIX requires async signal safety for fork in signal handlers, not in generalRalf Jung-4/+2
2019-02-03more formattingRalf Jung-4/+8
2019-02-03submodule: update clippy from 6ce78d1 to 3bda548Hirokazu Hata-10/+11
2019-02-03Auto merge of #58062 - SimonSapin:iter_from_fn, r=alexcrichtonbors-32/+25
Rename iter::unfold to iter::from_fn and remove explicit state This API is unstable. CC https://github.com/rust-lang/rust/issues/55977#issuecomment-459657195
2019-02-03cleanup: don't use node_to_hir_id where unneededljedrz-17/+10
2019-02-03liballoc: revert nested imports style changes.Mazdak Farrokhzad-406/+305
2019-02-03Auto merge of #58043 - jethrogb:jb/sgx-usercallnrs, r=joshtriplettbors-20/+10
Fix `std::os::fortanix_sgx::usercalls::raw::UsercallNrs` It was 0-indexed but should be 1-indexed. This PR just removes the duplicate code and re-exports the internal enum. Fixes https://github.com/fortanix/rust-sgx/issues/88 r? @joshtriplett
2019-02-03liballoc: alloc-extern-crates test needs --edition=2018Mazdak Farrokhzad-1/+1
2019-02-02Test behaviourClar Fon-4/+9
2019-02-03submodule: update rls from c9d25b667a to f331ff7Hirokazu Hata-0/+0