about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-08-21Moved support code for `rustc_mir::borrow_check` query out of `mod transform`.Felix S. Klock II-1248/+1231
2017-08-21Remove the `rustc_mir::transform` entry point for mir-borrowck.Felix S. Klock II-28/+1
2017-08-21Expose mir-borrowck via a query.Felix S. Klock II-2/+44
(A followup commit removes the mir::transform based entry point.)
2017-08-21Auto merge of #43986 - petrochenkov:pubcrate3, r=pnkfelixbors-1309/+64
rustc: Remove some dead code Extracted from https://github.com/rust-lang/rust/pull/43192 r? @eddyb
2017-08-21Auto merge of #43929 - oli-obk:use_placement, r=nrcbors-41/+198
Improve placement of `use` suggestions r? @nrc cc @estebank @Mark-Simulacrum fixes #42835 fixes #42548 fixes #43769
2017-08-20Auto merge of #44000 - ids1024:redox-exec-error, r=alexcrichtonbors-1/+1
redox: Correct error on exec when file is not found `.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
2017-08-20redox: Correct error on exec when file is not foundIan Douglas Scott-1/+1
`.raw_os_error()` (called in `spawn()`) returned None, so this produced an incorrect error.
2017-08-20Auto merge of #43996 - shanavas786:fix-typo, r=frewsxcvbors-1/+1
Fix typo in doc
2017-08-20Auto merge of #43978 - GuillaumeGomez:missing-links, r=frewsxcvbors-60/+115
Missing links r? @rust-lang/docs
2017-08-20Auto merge of #43976 - dylanmckay:update-builtins, r=alexcrichtonbors-0/+0
Update the compiler_builtins submodule Fixes #43411
2017-08-20Fix typo in docShanavas M-1/+1
2017-08-20Auto merge of #43911 - arthurprs:update-jemalloc, r=alexcrichtonbors-23/+1
Update jemalloc to 4.5.0 Second try, including the fix for osx deadlock jemalloc/jemalloc#895. cc https://github.com/rust-lang/rust/pull/41861 @alexcrichton @RalfJung
2017-08-20Auto merge of #43965 - frewsxcv:frewsxcv-filter-map, r=QuietMisdreavusbors-1/+1
Minor Iterator::filter_map description rewording. Fixes https://github.com/rust-lang/rust/issues/39294.
2017-08-20Auto merge of #43950 - redox-os:redox_docker, r=alexcrichtonbors-0/+1
Add x86_64-unknown-redox to build manifest target list This should fix the issue of `x86_64-unknown-redox` not being available for `rustup target add`
2017-08-19Auto merge of #43936 - oli-obk:patch-6, r=alexcrichtonbors-4/+4
Upgrade a comment to a doc comment r? @alexcrichton cc @bjorn3
2017-08-19librustc_typeck: store a DefId rather than a NameTamir Duberstein-7/+5
2017-08-19rustc: Remove some dead codeVadim Petrochenkov-1309/+64
2017-08-19Auto merge of #43919 - frewsxcv:frewsxcv-char-primitive, r=QuietMisdreavusbors-13/+18
Minor rewrite of char primitive unicode intro. Opened primarily to address #36998. Despite my love for emoji, the heart example is a little confusing because both heart characters start with the same code point and there can be stark rendering differences across browsers. I also spelled out what each of the code points is in the code block, which (hopefully) sheds light why one character is one code point while the other is two. Very much open to suggestion and improvements. I'm pretty tired when I wrote this so I might wake up and realize that this is making things more confusing 😅
2017-08-19Auto merge of #43933 - topecongiro:bad-span-for-attributes, r=petrochenkovbors-16/+11
Fix bad span for attributes Closes #42641.
2017-08-18Minor Iterator::filter_map description rewording.Corey Farwell-1/+1
Fixes https://github.com/rust-lang/rust/issues/39294.
2017-08-18Add missing links for String module and typeGuillaume Gomez-32/+41
2017-08-18Auto merge of #43917 - ids1024:redox-unwind, r=alexcrichtonbors-2/+1
Enable unwinding panics on Redox
2017-08-18Add missing urls for Result structGuillaume Gomez-27/+73
2017-08-18Add missing url for fmt moduleGuillaume Gomez-1/+1
2017-08-18Update the compiler_builtins submoduleDylan McKay-0/+0
Fixes #43411
2017-08-18Auto merge of #43901 - GuillaumeGomez:unsized-union-field, r=petrochenkovbors-10/+91
udpdate error message for unsized union field Fixes #36312.
2017-08-18Add an additional empty line between the suggested `use` and the next itemOliver Schneider-5/+18
2017-08-18Handle structs, unions and enums unsized field/variant separatelyGuillaume Gomez-13/+64
2017-08-18Auto merge of #43904 - topecongiro:libsyntax/parse-attr, r=petrochenkovbors-6/+4
Eat open paren when parsing list in libsyntax/parse/attr.rs This PR adds a small refactoring: ```diff pub fn parse_meta_item_kind(&mut self) -> PResult<'a, ast::MetaItemKind> { Ok(if self.eat(&token::Eq) { ast::MetaItemKind::NameValue(self.parse_unsuffixed_lit()?) - } else if self.token == token::OpenDelim(token::Paren) { + } else if self.eat(&token::OpenDelim(token::Paren)) { ast::MetaItemKind::List(self.parse_meta_seq()?) } else { - self.eat(&token::OpenDelim(token::Paren)); ast::MetaItemKind::Word }) } ``` in `parse_meta_item_kind()`, the parser calls `self.eat(&token::OpenDelim(token::Paren));` before returning `ast::MetaItemKind::Word` just to add `(` to expected token. It seems more natural to eat the paren when parsing `ast::MetaItemKind::List`.
2017-08-18Auto merge of #43900 - TobiasSchaffner:net_out_of_io, r=alexcrichtonbors-59/+62
Refactoring: move net specific file descriptor methods Move the implementations of net specific file descriptor methods from io to net. This makes it easier to exclude net at all if it is not needed for a target.
2017-08-18Auto merge of #43897 - lu-zero:master, r=alexcrichtonbors-0/+90
More PowerPC intrinsics
2017-08-18Auto merge of #43832 - huntiep:compiler-desugaring-enum, r=nikomatsakisbors-11/+48
Implement CompilerDesugaringKind enum This is the first step outlined in #35946. I think that the variants of `CompilerDesugaringKind` should be changed, I didn't know what the official names for `...` and `<-` are. I'm not to sure how tests for the compiler work, but I would imagine that tests should be added such that `Symbol::intern(s) == CompilerDesugaringKind::from(s).as_symbol()` for valid `s`.
2017-08-17Add x86_64-unknown-redox to build manifest target listJeremy Soller-0/+1
2017-08-17Improve placement of `use` suggestionsOliver Schneider-37/+181
2017-08-17Rollup merge of #43930 - pravic:es5-revert-shorthand, r=frewsxcvCorey Farwell-4/+4
Fix ES5 regression with shorthand names. Reverts 1b6c9605e4. I appreciate new features and syntax in Rust, but seriously, don't rewrite anything. Especially if this **breaks** documentation of language itself and every crate hosted at docs.rs.
2017-08-17Rollup merge of #43928 - anthonyclays:anthonyclays-refcell-docfix, ↵Corey Farwell-1/+1
r=QuietMisdreavus Fixed typo in RefCell::get_mut "[...] is usually not you want." => "[...] is usually not what you want."
2017-08-17Rollup merge of #43920 - michael-zapata:cleanup/mir, r=arielb1Corey Farwell-6/+4
refactor(mir): remove unused argument Small cleanup that shouldn't have any impact, as it's a small thing introduced in #43772
2017-08-17Rollup merge of #43916 - integer32llc:cargo-docs-redirect, r=alexcrichtonCorey Farwell-1/+46
Implement a temp redirect for cargo docs As discussed in https://github.com/rust-lang/cargo/issues/4040#issuecomment-321639074 This is a redirect meant to be replaced once cargo docs have been converted to mdbook. We just want *a* URL to ride the trains for now so that we can print doc.rust-lang.org/cargo in the paper book and guarantee that it will go *somewhere* useful by the time the book is printed. Implemented as a meta redirect in HTML because we don't currently have any google juice at doc.rust-lang.org/cargo to lose. When I run `./x.py doc`, this creates a `build/x86_64-apple-darwin/doc/cargo/index.html` file that contains a meta redirect to doc.crates.io. As I understand rust-central-station to work, this should be what we need to make `doc.rust-lang.org/cargo` to work. r? @alexcrichton and/or @steveklabnik
2017-08-17Rollup merge of #43915 - adrian5:patch-1, r=sfacklerCorey Farwell-1/+1
Fix typo in doc
2017-08-17Rollup merge of #43914 - steveklabnik:update-books, r=QuietMisdreavusCorey Farwell-0/+0
Update the books for next release
2017-08-17Rollup merge of #43912 - Songbird0:e0106_field_lifetimes, r=GuillaumeGomezCorey Farwell-0/+4
E0106: field lifetimes Hi there, I've added an example for custom type lifetimes located in another `struct` field. cc @GuillaumeGomez
2017-08-17Rollup merge of #43905 - partim:master, r=steveklabnikCorey Farwell-1/+8
Document that `std::hash::Hasher::finish()` does not reset the hasher. Clarifies the fact that `finish()` doesn’t in fact end or reset the hasher. This was surprising to me … Follows up on and fixes #43763
2017-08-17Rollup merge of #43891 - Fourchaux:master, r=steveklabnikCorey Farwell-59/+59
Fix typos & us spellings Fixing some typos and non en-US spellings. (Update of PR https://github.com/rust-lang/rust/pull/42812 )
2017-08-17Upgrade a comment to a doc commentOliver Schneider-1/+1
2017-08-17Upgrade a comment to a doc commentOliver Schneider-3/+3
2017-08-17Update ui testsSeiichi Uchida-2/+2
2017-08-17Include the closing paren to the span of ast::NestedMetaItemSeiichi Uchida-11/+6
2017-08-17Use respan()Seiichi Uchida-3/+3
2017-08-17Auto merge of #43902 - michaelwoerister:fix-mir-passes-promoted, r=arielb1bors-0/+8
Run MIR passes on promoted temporaries again. This seems to have been broken some time in the past (maybe here: https://github.com/rust-lang/rust/commit/9c154a67bf5c6841c39afdb90388cc3ba36dc70c#diff-2f8e8805126c84b2be3f0967ffa0af28L162). r? @arielb1
2017-08-17Fix ES5 regression with shorthand names.pravic-4/+4
Reverts 1b6c9605e4.