about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-02-20tweak pinning projectionsRalf Jung-12/+21
2019-02-20fix typoAndre Bogus-1/+1
2019-02-20./x.py test src/test/ui --stage 1 --bless -i --compare-mode=nllClint Frederickson-8/+8
2019-02-20Run rustfmtSantiago Pastorino-117/+155
2019-02-20Fix erroneous loop diagnostic in nllSantiago Pastorino-73/+205
This commit fixes the logic of detecting when a use happen in a later iteration of where a borrow was defined Fixes #53773
2019-02-20Use successor_within_block helperSantiago Pastorino-4/+1
2019-02-20Dedup a rustdoc diagnostic constructionDale Wijnand-22/+8
2019-02-20Turn duration consts into associated constsStjepan Glavina-19/+16
2019-02-20update clippy: partially HirIdifyljedrz-10/+5
2019-02-20Auto merge of #58578 - kennytm:rollup, r=kennytmbors-633/+1177
Rollup of 24 pull requests Successful merges: - #56470 (Modify doctest's auto-`fn main()` to allow `Result`s) - #58044 (Make overflowing and wrapping negation const) - #58303 (Improve stability tags display) - #58336 (Fix search results interactions) - #58384 (Fix tables display) - #58392 (Use less explicit shifting in std::net::ip) - #58409 (rustdoc: respect alternate flag when formatting impl trait) - #58456 (Remove no longer accurate diagnostic code about NLL) - #58528 (Don't use an allocation for ItemId in StmtKind) - #58530 (Monomorphize less code in fs::{read|write}) - #58534 (Mention capping forbid lints) - #58536 (Remove UB in pointer tests) - #58538 (Add missing fmt structs examples) - #58539 (Add alias methods to PathBuf for underlying OsString (#58234)) - #58544 (Fix doc for rustc "-g" flag) - #58545 (Add regression test for a specialization-related ICE (#39448)) - #58546 (librustc_codegen_llvm => 2018) - #58551 (Explain a panic in test case net::tcp::tests::double_bind) - #58553 (Use more impl header lifetime elision) - #58562 (Fix style nits) - #58565 (Fix typo in std::future::Future docs) - #58568 (Fix a transposition in driver.rs.) - #58569 (Reduce Some Code Repetitions like `(n << amt) >> amt`) - #58576 (Stabilize iter::successors and iter::from_fn)
2019-02-20adjust intravisit HirIdificationljedrz-16/+12
2019-02-20HirIdification: change some NodeId to HirId callsljedrz-23/+22
2019-02-20hir: remove parent_node from NodeCollectorljedrz-24/+17
2019-02-20hir: change HirIdValidator.hir_ids_seen to a setljedrz-10/+15
2019-02-20hir: add and use hir_to_node_id in NodeCollectorljedrz-32/+34
2019-02-20hir: HirId-ify intravisitljedrz-211/+216
2019-02-20tweaksRalf Jung-14/+15
2019-02-20cleanup macro after 2018 transitionAleksey Kladov-4/+2
We can now use `?`
2019-02-20remove a bit of dead codeAleksey Kladov-6/+0
2019-02-20Refactor Windows stdio and remove stdin double bufferingPaul Dicker-116/+178
2019-02-20Remove unused Read implementation on sys::Windows::StdinPaul Dicker-9/+0
2019-02-20Remove sys::*::Stderr Write implementationPaul Dicker-80/+13
2019-02-20Rollup merge of #58044 - Lokathor:lokathor, r=alexcrichtonkennytm-9/+17
Make overflowing and wrapping negation const Remember that the signed and unsigned versions are slightly different here, so there's four functions made const instead of just two.
2019-02-20Rollup merge of #58576 - SimonSapin:successors, r=Centrilkennytm-14/+13
Stabilize iter::successors and iter::from_fn FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773, https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234
2019-02-20Rollup merge of #58569 - kenta7777:reduce-code-repetition, r=oli-obkkennytm-6/+4
Reduce Some Code Repetitions like `(n << amt) >> amt` This Pull Request is related to [#49937](https://github.com/rust-lang/rust/issues/49937). This Pull Request has reduced repetition of `(n << amt) >> amt`.
2019-02-20Rollup merge of #58568 - benjaminp:driver-trans, r=wesleywiserkennytm-1/+1
Fix a transposition in driver.rs.
2019-02-20Rollup merge of #58565 - thomaseizinger:typo-future-docs, r=frewsxcvkennytm-1/+1
Fix typo in std::future::Future docs I am not quite sure if this is actually a typo but 1. to me the sentence doesn't make sense if it says "expect" 2. I hope that `Future`s are not really allowed to cause memory unsafety if they are polled after completion.
2019-02-20Rollup merge of #58562 - dlrobertson:fix_nits, r=alexregkennytm-48/+64
Fix style nits Fix style nits discovered in reading code. r? @alexreg
2019-02-20Rollup merge of #58553 - scottmcm:more-ihle, r=Centrilkennytm-219/+219
Use more impl header lifetime elision Inspired by seeing explicit lifetimes on these two: - https://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#impl-FusedIterator - https://doc.rust-lang.org/nightly/std/primitive.u32.html#impl-Not And a follow-up to https://github.com/rust-lang/rust/pull/54687, that started using IHLE in libcore. Most of the changes in here fall into two big categories: - Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop`, `Debug`, and `Clone`) - Forwarding impls that are only possible because the lifetime doesn't matter (like `impl<R: Read + ?Sized> Read for &mut R`) I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations [where the flipped one cannot elide the lifetime](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403/2?u=scottmcm). I also removed two lifetimes that turned out to be completely unused; see https://github.com/rust-lang/rust/issues/41960#issuecomment-464557423
2019-02-20Rollup merge of #58551 - ssomers:master, r=oli-obkkennytm-2/+6
Explain a panic in test case net::tcp::tests::double_bind Those who try to build libstd on the Windows Subsystem for Linux experience a single failing test, where the point of failure is an explicit but anonymous panic, as reported in https://github.com/rust-lang/rust/issues/49367 This commit somewhat explains why and allows diagnosing a little.
2019-02-20Rollup merge of #58546 - taiki-e:librustc_codegen_llvm-2018, r=Centrilkennytm-199/+190
librustc_codegen_llvm => 2018 Transitions `librustc_codegen_llvm` to Rust 2018; cc #58099 r? @Centril
2019-02-20Rollup merge of #58545 - emlai:regression-test-for-39448, r=Centrilkennytm-0/+62
Add regression test for a specialization-related ICE (#39448) Closes #39448. This is my first time contributing, I hope I got everything right. :)
2019-02-20Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNNkennytm-2/+2
Fix doc for rustc "-g" flag The rustc `-g` CLI flag was miss documented to be a synonym of `-C debug-level=2` and not `-C debuglevel=2`. Also add links to the codegen docs for each synonym. I am unsure of this will conflict with work on #52938
2019-02-20Rollup merge of #58539 - aaronstillwell:master, r=Mark-Simulacrumkennytm-0/+81
Add alias methods to PathBuf for underlying OsString (#58234) Implemented the following methods on PathBuf which forward to the underlying OsString. - capacity - with_capacity - clear - reserve - reserve_exact - shrink_to_fit - shrink_to These methods have been documented with reference to the original docs for `OsString`. @Mark-Simulacrum please let me know if you feel this does not suffice. Further, I've not yet included tests for these definitions - please advise on how comprehensive tests need to be for methods such as these that simply alias other (already tested) methods. (This PR addresses issue #58234)
2019-02-20Rollup merge of #58538 - GuillaumeGomez:fmt-examples, r=Centrilkennytm-10/+313
Add missing fmt structs examples r? @rust-lang/docs
2019-02-20Rollup merge of #58536 - xfix:remove-ub-in-pointer-tests, r=RalfJungkennytm-5/+6
Remove UB in pointer tests UB found by Miri.
2019-02-20Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli-obkkennytm-1/+3
Mention capping forbid lints I felt the description of forbid was misleading/incomplete without mentioning how --cap-lints interacts with it.
2019-02-20Rollup merge of #58530 - scottmcm:monomorphize-less, r=TimNNkennytm-9/+18
Monomorphize less code in fs::{read|write} Since the generic-ness is only for the as_refs, might as well have std just compile the important part once instead of on every use.
2019-02-20Rollup merge of #58528 - Zoxc:stmtkind-item, r=oli-obkkennytm-6/+7
Don't use an allocation for ItemId in StmtKind
2019-02-20Rollup merge of #58456 - lzutao:nll, r=Centrilkennytm-4/+0
Remove no longer accurate diagnostic code about NLL r? @steveklabnik
2019-02-20Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavuskennytm-30/+43
rustdoc: respect alternate flag when formatting impl trait Fixes #58226. Before: <img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png"> After: <img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png">
2019-02-20Rollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obkkennytm-25/+58
Use less explicit shifting in std::net::ip Now that we have `{to|from}_be_bytes` the code can be simpler. (Inspired by PR #57740)
2019-02-20Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavuskennytm-25/+6
Fix tables display Fixes #58134. cc @lzutao r? @QuietMisdreavus
2019-02-20Rollup merge of #58336 - GuillaumeGomez:fix-search-results-interactions, ↵kennytm-2/+2
r=oli-obk Fix search results interactions The bug is visible when you search for "none": the second tab is empty and therefore it messes with the classes. Then when you try to use arrows on the third tab, it just crashes (because only 2 "search-results" are present and you're on tab 3). r? @QuietMisdreavus
2019-02-20Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, ↵kennytm-11/+10
r=QuietMisdreavus Improve stability tags display The issue was the font color on dark theme. Fixed now: <img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png"> r? @QuietMisdreavus
2019-02-19Update cargoEric Huss-0/+0
2019-02-19update miriRalf Jung-14/+14
2019-02-19update miriRalf Jung-14/+14
2019-02-19expand Unpin exampleRalf Jung-3/+5
2019-02-19improve wordingRalf Jung-2/+2