-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 29 pull requests #56325
Rollup of 29 pull requests #56325
Commits on Oct 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 32d07cc - Browse repository at this point
Copy the full SHA 32d07ccView commit details
Commits on Nov 18, 2018
-
atomic::Ordering: Get rid of misleading parts of intro
Remove the parts of atomic::Ordering's intro that wrongly claimed that SeqCst prevents all reorderings around it. Closes rust-lang#55196
Configuration menu - View commit details
-
Copy full SHA for cc63bd4 - Browse repository at this point
Copy the full SHA cc63bd4View commit details -
Drop function parameters in expected order
Given the function fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {} Prior to 1.12 we dropped both `_x` and `_y` before the rest of their respective parameters, since then we dropped `_x` and `_y` after. The original order appears to be the correct order, as the value created later is dropped first, so we revert to that order and add a test for it.
Configuration menu - View commit details
-
Copy full SHA for 7dc0dd2 - Browse repository at this point
Copy the full SHA 7dc0dd2View commit details
Commits on Nov 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 28cc944 - Browse repository at this point
Copy the full SHA 28cc944View commit details
Commits on Nov 20, 2018
-
Reuse the
P
inInvocationCollector::fold_{,opt_}expr
.This requires adding a new method, `P::filter_map`. This commit reduces instruction counts for various benchmarks by up to 0.7%.
Configuration menu - View commit details
-
Copy full SHA for 6674db4 - Browse repository at this point
Copy the full SHA 6674db4View commit details -
Enclose type in backticks for "non-exhaustive patterns" error
This makes the error style consistent with the convention in error messages.
Configuration menu - View commit details
-
Copy full SHA for b99f9f7 - Browse repository at this point
Copy the full SHA b99f9f7View commit details
Commits on Nov 21, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 464c9da - Browse repository at this point
Copy the full SHA 464c9daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 591607d - Browse repository at this point
Copy the full SHA 591607dView commit details -
The std::io::read main documentation can lead to error because the buffer is prefilled with 10 zeros that will pad the response. Using an empty vector is better. The `read_to_end` documentation is already correct though. This is my first rust PR, don't hesitate to tell me if I did something wrong.
Configuration menu - View commit details
-
Copy full SHA for 1ed9195 - Browse repository at this point
Copy the full SHA 1ed9195View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83388e8 - Browse repository at this point
Copy the full SHA 83388e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a2a251 - Browse repository at this point
Copy the full SHA 5a2a251View commit details -
Configuration menu - View commit details
-
Copy full SHA for 925274a - Browse repository at this point
Copy the full SHA 925274aView commit details -
Enclose type in backticks for "reached the recursion limit while auto…
…-dereferencing" error
Configuration menu - View commit details
-
Copy full SHA for f039872 - Browse repository at this point
Copy the full SHA f039872View commit details
Commits on Nov 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for ec3ac11 - Browse repository at this point
Copy the full SHA ec3ac11View commit details -
Configuration menu - View commit details
-
Copy full SHA for af9b057 - Browse repository at this point
Copy the full SHA af9b057View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1ca4f6 - Browse repository at this point
Copy the full SHA e1ca4f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9de72f - Browse repository at this point
Copy the full SHA d9de72fView commit details
Commits on Nov 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 5c99ae6 - Browse repository at this point
Copy the full SHA 5c99ae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d76f54 - Browse repository at this point
Copy the full SHA 8d76f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79ee8f3 - Browse repository at this point
Copy the full SHA 79ee8f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 234d043 - Browse repository at this point
Copy the full SHA 234d043View commit details -
Configuration menu - View commit details
-
Copy full SHA for db8540e - Browse repository at this point
Copy the full SHA db8540eView commit details -
Instead of maybe storing its own sysroot and maybe deferring to the one in `Session::opts`, just clone the latter when necessary so one is always directly available. This removes the need for the getter.
Configuration menu - View commit details
-
Copy full SHA for 145e2ab - Browse repository at this point
Copy the full SHA 145e2abView commit details -
Add TryFrom<&[T]> for [T; $N] where T: Copy
`TryFrom<&[T]> for &[T; $N]` (note *reference* to an array) already exists, but not needing to dereference makes type inference easier for example when using `u32::from_be_bytes`. Also add doc examples doing just that.
Configuration menu - View commit details
-
Copy full SHA for 057e6d3 - Browse repository at this point
Copy the full SHA 057e6d3View commit details -
Introduce
SearchPath
and replaceSearchPaths
withVec<SearchPath>
.It's more idiomatic, makes the code shorter, and will help with the next commit.
Configuration menu - View commit details
-
Copy full SHA for 8e75844 - Browse repository at this point
Copy the full SHA 8e75844View commit details -
Avoid regenerating the
Vec<PathBuf>
inFileSearch::search()
.`FileSearch::search()` traverses one or more directories. For each directory it generates a `Vec<PathBuf>` containing one element per file in that directory. In some benchmarks this occurs enough that the allocations done for the `PathBuf`s are significant, and in practice a small number of directories are being traversed over and over again. For example, when compiling the `tokio-webpush-simple` benchmark, two directories are traversed 58 times each. Each of these directories have more than 100 files. This commit changes things so that all the `Vec<PathBuf>`s that will be needed by a `Session` are precomputed when that `Session` is created; they are stored in `SearchPath`. `FileSearch` gets a reference to the necessary `SearchPath`s. This reduces instruction counts on several benchmarks by 1--5%. The commit also removes the barely-used `visited_dirs` hash in `for_each_lib_searchPath`. It only detects if `tlib_path` is the same as one of the previously seen paths, which is unlikely.
Configuration menu - View commit details
-
Copy full SHA for ca82a82 - Browse repository at this point
Copy the full SHA ca82a82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d2b7c0 - Browse repository at this point
Copy the full SHA 2d2b7c0View commit details -
Replace
FileSearch::for_each_lib_search_path
withsearch_paths
.Returning an iterator leads to nicer code all around.
Configuration menu - View commit details
-
Copy full SHA for 4dd0f66 - Browse repository at this point
Copy the full SHA 4dd0f66View commit details
Commits on Nov 26, 2018
-
Remove unsafe
unsafe
inner function.Within this `Iterator` implementation, a function `unsafe_get` is defined which unsafely allows _unchecked_ indexing of any element in a slice. This should be marked as _unsafe_, but it is not. To address this issue, I removed that inner function.
Configuration menu - View commit details
-
Copy full SHA for cc46685 - Browse repository at this point
Copy the full SHA cc46685View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45dfe43 - Browse repository at this point
Copy the full SHA 45dfe43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 769d711 - Browse repository at this point
Copy the full SHA 769d711View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd20be5 - Browse repository at this point
Copy the full SHA cd20be5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1865ed - Browse repository at this point
Copy the full SHA a1865edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6494f1e - Browse repository at this point
Copy the full SHA 6494f1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f028fe - Browse repository at this point
Copy the full SHA 6f028feView commit details
Commits on Nov 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for d4a6e73 - Browse repository at this point
Copy the full SHA d4a6e73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6739c0e - Browse repository at this point
Copy the full SHA 6739c0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8f9302 - Browse repository at this point
Copy the full SHA a8f9302View commit details -
move stage0.txt to toplevel directory
This way all files needed by packagers now reside in toplevel Signed-off-by: Marc-Antoine Perennou <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c4e0b89 - Browse repository at this point
Copy the full SHA c4e0b89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73b656b - Browse repository at this point
Copy the full SHA 73b656bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c75ed34 - Browse repository at this point
Copy the full SHA c75ed34View commit details -
Configuration menu - View commit details
-
Copy full SHA for a542e48 - Browse repository at this point
Copy the full SHA a542e48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32aafb2 - Browse repository at this point
Copy the full SHA 32aafb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e97edad - Browse repository at this point
Copy the full SHA e97edadView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3b29ca - Browse repository at this point
Copy the full SHA f3b29caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59ae93d - Browse repository at this point
Copy the full SHA 59ae93dView commit details -
Configuration menu - View commit details
-
Copy full SHA for aeede9e - Browse repository at this point
Copy the full SHA aeede9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e63bd91 - Browse repository at this point
Copy the full SHA e63bd91View commit details -
Fix alignment of stores to scalar pair
The alignment for the second element of a scalar pair is not the same as for the first element. Make sure it is computed correctly based on the element size.
Configuration menu - View commit details
-
Copy full SHA for d8190af - Browse repository at this point
Copy the full SHA d8190afView commit details
Commits on Nov 28, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 5d77173 - Browse repository at this point
Copy the full SHA 5d77173View commit details -
Rollup merge of rust-lang#55391 - matthiaskrgr:bootstrap_cleanup, r=T…
…imNN bootstrap: clean up a few clippy findings remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.
Configuration menu - View commit details
-
Copy full SHA for 2ac258a - Browse repository at this point
Copy the full SHA 2ac258aView commit details -
Rollup merge of rust-lang#55821 - ljedrz:cached_key_sorts, r=michaelw…
…oerister Use sort_by_cached_key when the key function is not trivial/free I'm not 100% sure about `def_path_hash` (everything it does is inlined) but it seems like a good idea at least for the rest, as they are cloning.
Configuration menu - View commit details
-
Copy full SHA for c1f15da - Browse repository at this point
Copy the full SHA c1f15daView commit details -
Rollup merge of rust-lang#56014 - euclio:issue-21335, r=nagisa
add test for issue rust-lang#21335 Running this test with LLVM assertions enabled doesn't seem to trigger an assertion on my Mac. Fixes rust-lang#21335.
Configuration menu - View commit details
-
Copy full SHA for 7bed15f - Browse repository at this point
Copy the full SHA 7bed15fView commit details -
Rollup merge of rust-lang#56021 - RalfJung:track-features, r=oli-obk
avoid features_untracked The docs say to not use `features_untracked` when we have a tcx. @oli-obk any particular reason why the untracked version is used all over const qualification?
Configuration menu - View commit details
-
Copy full SHA for 21c77dc - Browse repository at this point
Copy the full SHA 21c77dcView commit details -
Rollup merge of rust-lang#56023 - vorner:doc/atomic-ordering-strip, r=@…
…stjepang atomic::Ordering: Get rid of misleading parts of intro Remove the parts of atomic::Ordering's intro that wrongly claimed that SeqCst prevents all reorderings around it. Closes rust-lang#55196 This is a (minimal) alternative to rust-lang#55233. I also wonder if it would be worth adding at least some warnings that atomics are often a footgun/hard to use correctly, similarly like `mem::transmute` or other functions have.
Configuration menu - View commit details
-
Copy full SHA for c286be5 - Browse repository at this point
Copy the full SHA c286be5View commit details -
Rollup merge of rust-lang#56044 - matthewjasper:function-param-drop-o…
…rder, r=cramertj Drop partially bound function parameters in the expected order Given the function ```rust fn foo((_x, _): (LogDrop, LogDrop), (_, _y): (LogDrop, LogDrop)) {} ``` Prior to 1.12.0 we dropped both `_x` and `_y` before the rest of their respective parameters, since then we dropped `_x` and `_y` after. The original order appears to be the correct order, as the value created later is dropped first, so we revert to that order and add a test for it. While this is technically a breaking change, I can't work out how anyone could be relying on this without making their code very brittle. If this is considered to be too likely to break real world code then I can revert the change and change the test to check for the current order.
Configuration menu - View commit details
-
Copy full SHA for fa335e9 - Browse repository at this point
Copy the full SHA fa335e9View commit details -
Rollup merge of rust-lang#56080 - mark-i-m:patch-2, r=steveklabnik
Reduce the amount of bold text at doc.rlo Currently, all of the text is either huge or small. IMHO this is hard to read, so I propose that we make the second-level headings smaller, without making them any less prominent. # Before: ![image](https://user-images.githubusercontent.com/8827840/48737315-50447e80-ec13-11e8-8243-6211dbba1aa1.png) # After: ![image](https://user-images.githubusercontent.com/8827840/48737258-32771980-ec13-11e8-814e-e7851954c05a.png)
Configuration menu - View commit details
-
Copy full SHA for 6ca10ea - Browse repository at this point
Copy the full SHA 6ca10eaView commit details -
Rollup merge of rust-lang#56090 - nnethercote:filesearch, r=eddyb
Overhaul `FileSearch` and `SearchPaths` `FileSearch::search()` traverses one or more directories. For each directory it generates a `Vec<PathBuf>` containing one element per file in that directory. In some benchmarks this occurs enough that the allocations done for the `PathBuf`s are significant, and in practice a small number of directories are being traversed over and over again. For example, when compiling the `tokio-webpush-simple` benchmark, two directories are traversed 58 times each. Each of these directories have more than 100 files. We can do all the necessary traversals up front, when `Session` is created, and get the `Vec<PathBuf>`s then. This reduces instruction counts on several benchmarks by 1--5%. r? @alexcrichton CC @eddyb, @michaelwoerister, @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 0789658 - Browse repository at this point
Copy the full SHA 0789658View commit details -
Rollup merge of rust-lang#56114 - varkor:nonexhaustive-backticks, r=n…
…ikomatsakis Enclose type in backticks for "non-exhaustive patterns" error This makes the error style consistent with the convention in error messages.
Configuration menu - View commit details
-
Copy full SHA for 962e210 - Browse repository at this point
Copy the full SHA 962e210View commit details -
Rollup merge of rust-lang#56124 - antoine-de:fix_read_to_end_doc_mist…
…ake, r=TimNN Fix small doc mistake on std::io::read::read_to_end The std::io::read main documentation can lead to error because the buffer is prefilled with 10 zeros that will pad the response. Using an empty vector is better. The `read_to_end` documentation is already correct though. This is my first rust PR, don't hesitate to tell me if I did something wrong.
Configuration menu - View commit details
-
Copy full SHA for 5fc9d68 - Browse repository at this point
Copy the full SHA 5fc9d68View commit details -
Rollup merge of rust-lang#56127 - rust-lang:oli-obk-patch-1, r=nikoma…
…tsakis Update an outdated comment in mir building r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for 084e837 - Browse repository at this point
Copy the full SHA 084e837View commit details -
Rollup merge of rust-lang#56131 - ljedrz:assorted, r=RalfJung
Assorted tweaks - preallocate `VecDeque` in `Decodable::decode` (as it is done with other collections which can do it) - add a FIXME to `String::from_utf16` r? @RalfJung
Configuration menu - View commit details
-
Copy full SHA for d9b5980 - Browse repository at this point
Copy the full SHA d9b5980View commit details -
Rollup merge of rust-lang#56148 - mark-i-m:rustc-guide-submodule, r=n…
…ikomatsakis Add rustc-guide as a submodule Adding this as a submodule will allow two things: - Linking to the guide from doc.rlo - Doing a link check as part of the rust CI build Key question: Do we want to wait for the book to be filled out more? e.g. do we ever want to move it out of the nursery? r? @nikomatsakis cc @steveklabnik
Configuration menu - View commit details
-
Copy full SHA for 5503033 - Browse repository at this point
Copy the full SHA 5503033View commit details -
Rollup merge of rust-lang#56149 - ariasuni:improve-amctime-doc, r=TimNN
Make std::os::unix/linux::fs::MetadataExt::a/m/ctime* documentation clearer I was confused by this API so I clarified what they are doing. I was wondering if I should try to unify more documentation and examples between `unix` and `linux` (e.g. “of the file” is used in `unix` to refer to the file these metadata is for, “of this file” in `linux`, “of the underlying file” in `std::fs::File`).
Configuration menu - View commit details
-
Copy full SHA for d77bbb4 - Browse repository at this point
Copy the full SHA d77bbb4View commit details -
Rollup merge of rust-lang#56165 - RalfJung:drop-glue-type, r=eddyb,ni…
…komatsakis drop glue takes in mutable references, it should reflect that in its type When drop glue begins, it should retag, like all functions taking references do. But to do that, it needs to take the reference at a proper type: `&mut T`, not `*mut T`. Failing to retag can mean that the memory the reference points to remains frozen, and `EscapeToRaw` on a frozen location is a NOP, meaning later mutations cause a Stacked Borrows violation. Cc @nikomatsakis @gankro because Stacked Borrows Cc @eddyb for the changes to miri argument passing (the intention is to allow passing `*mut [u8]` when `&mut [u8]` is expected and vice versa)
Configuration menu - View commit details
-
Copy full SHA for b2ad3e2 - Browse repository at this point
Copy the full SHA b2ad3e2View commit details -
Rollup merge of rust-lang#56205 - estebank:ice-ice-baby, r=nikomatsakis
Fix ICE with feature self_struct_ctor Fix rust-lang#56202.
Configuration menu - View commit details
-
Copy full SHA for 9642325 - Browse repository at this point
Copy the full SHA 9642325View commit details -
Rollup merge of rust-lang#56216 - SimonSapin:array-tryfrom-slice, r=w…
…ithoutboats Add TryFrom<&[T]> for [T; $N] where T: Copy `TryFrom<&[T]> for &[T; $N]` (note *reference* to an array) already exists, but not needing to dereference makes type inference easier for example when using `u32::from_be_bytes`. Also add doc examples doing just that.
Configuration menu - View commit details
-
Copy full SHA for 6e25cfb - Browse repository at this point
Copy the full SHA 6e25cfbView commit details -
Rollup merge of rust-lang#56220 - estebank:suggest-lifetime-move, r=n…
…ikomatsakis Suggest appropriate place for lifetime when declared after type arguments
Configuration menu - View commit details
-
Copy full SHA for 2a07404 - Browse repository at this point
Copy the full SHA 2a07404View commit details -
Rollup merge of rust-lang#56223 - Mark-Simulacrum:self-profile-json, …
…r=wesleywiser Make JSON output from -Zprofile-json valid r? @wesleywiser cc rust-lang/rustc-perf#299
Configuration menu - View commit details
-
Copy full SHA for 26bc763 - Browse repository at this point
Copy the full SHA 26bc763View commit details -
Rollup merge of rust-lang#56236 - frewsxcv:frewsxcv-unsafe-unsafe, r=…
…cramertj Remove unsafe `unsafe` inner function. Within this `Iterator` implementation, a function `unsafe_get` is defined which unsafely allows _unchecked_ indexing of any element in a slice. This should be marked as _unsafe_, but it is not. To address this issue, I removed that inner function.
Configuration menu - View commit details
-
Copy full SHA for 2faaa35 - Browse repository at this point
Copy the full SHA 2faaa35View commit details -
Rollup merge of rust-lang#56245 - mark-i-m:stabilize_ques_kleene, r=a…
…lexcrichton Stabilize feature `macro_at_most_once_rep` a.k.a. `?` Kleene operator 🎉 cc rust-lang#48075 r? @Centril
Configuration menu - View commit details
-
Copy full SHA for 24e6fb2 - Browse repository at this point
Copy the full SHA 24e6fb2View commit details -
Rollup merge of rust-lang#56255 - jasonl:update-old-documents, r=mich…
…aelwoerister Update outdated code comments in StringReader For the detection of newlines in the lexer, this is now done in `analyze_source_file.rs`.
Configuration menu - View commit details
-
Copy full SHA for ee531da - Browse repository at this point
Copy the full SHA ee531daView commit details -
Rollup merge of rust-lang#56257 - mark-i-m:rustc-guide-links, r=nikom…
…atsakis rustc-guide has moved to rust-lang/ r? @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for a524143 - Browse repository at this point
Copy the full SHA a524143View commit details -
Rollup merge of rust-lang#56268 - nnethercote:fold_opt_expr-recycle, …
…r=petrochenkov Reuse the `P` in `InvocationCollector::fold_{,opt_}expr`. This requires adding a new method, `P::filter_map`. This commit reduces instruction counts for various benchmarks by up to 0.7%.
Configuration menu - View commit details
-
Copy full SHA for 70567f6 - Browse repository at this point
Copy the full SHA 70567f6View commit details -
Rollup merge of rust-lang#56273 - GuillaumeGomez:iterator-fnmut-missi…
…ng-link, r=steveklabnik Add missing doc link r? @steveklabnik
Configuration menu - View commit details
-
Copy full SHA for 19b10fc - Browse repository at this point
Copy the full SHA 19b10fcView commit details -
Rollup merge of rust-lang#56285 - Keruspe:stage0, r=alexcrichton
move stage0.txt to toplevel directory This way all files needed by packagers now reside in toplevel
Configuration menu - View commit details
-
Copy full SHA for e9fc4ba - Browse repository at this point
Copy the full SHA e9fc4baView commit details -
Rollup merge of rust-lang#56289 - marius:patch-1, r=cramertj
Fix small typo in comment of thread::stack_size
Configuration menu - View commit details
-
Copy full SHA for ebefb1a - Browse repository at this point
Copy the full SHA ebefb1aView commit details -
Rollup merge of rust-lang#56294 - polyfloyd:fix-typo-ffi-doc, r=sfackler
Fix a typo in the documentation of std::ffi
Configuration menu - View commit details
-
Copy full SHA for 1a4bb2b - Browse repository at this point
Copy the full SHA 1a4bb2bView commit details -
Rollup merge of rust-lang#56300 - nikic:issue-56267, r=eddyb
Fix alignment of stores to scalar pair The alignment for the second element of a scalar pair is not the same as for the first element, make sure it is calculated correctly. This fixes rust-lang#56267. r? @eddyb
Configuration menu - View commit details
-
Copy full SHA for a6e3e85 - Browse repository at this point
Copy the full SHA a6e3e85View commit details