-
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 16 pull requests #52735
Rollup of 16 pull requests #52735
Commits on Jul 23, 2018
-
Point at internal span in format string
Esteban Küber committedJul 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 38abca8 - Browse repository at this point
Copy the full SHA 38abca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87f0c1f - Browse repository at this point
Copy the full SHA 87f0c1fView commit details -
Point at incorrect named arg in format string
Esteban Küber committedJul 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 4230659 - Browse repository at this point
Copy the full SHA 4230659View commit details -
Don't match on region kinds when reporting NLL errors
With NLL region kinds are always ReVar
Configuration menu - View commit details
-
Copy full SHA for 338d545 - Browse repository at this point
Copy the full SHA 338d545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6bcf877 - Browse repository at this point
Copy the full SHA 6bcf877View commit details -
Configuration menu - View commit details
-
Copy full SHA for c55a698 - Browse repository at this point
Copy the full SHA c55a698View commit details -
Configuration menu - View commit details
-
Copy full SHA for bde2be0 - Browse repository at this point
Copy the full SHA bde2be0View commit details
Commits on Jul 24, 2018
-
Pass multiple linker arguments rather than concatenate with commas; -…
…l library -> -llibrary to work with apple's ld
Configuration menu - View commit details
-
Copy full SHA for 22d0ab0 - Browse repository at this point
Copy the full SHA 22d0ab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5363911 - Browse repository at this point
Copy the full SHA 5363911View commit details -
Configuration menu - View commit details
-
Copy full SHA for 296a179 - Browse repository at this point
Copy the full SHA 296a179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63ed6a1 - Browse repository at this point
Copy the full SHA 63ed6a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbbbf2d - Browse repository at this point
Copy the full SHA bbbbf2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c5ef0a - Browse repository at this point
Copy the full SHA 8c5ef0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3290774 - Browse repository at this point
Copy the full SHA 3290774View commit details -
Configuration menu - View commit details
-
Copy full SHA for 715005c - Browse repository at this point
Copy the full SHA 715005cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27c0d56 - Browse repository at this point
Copy the full SHA 27c0d56View commit details -
Configuration menu - View commit details
-
Copy full SHA for a71deb2 - Browse repository at this point
Copy the full SHA a71deb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9808f7c - Browse repository at this point
Copy the full SHA 9808f7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f487e39 - Browse repository at this point
Copy the full SHA f487e39View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9e3762 - Browse repository at this point
Copy the full SHA f9e3762View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d2226 - Browse repository at this point
Copy the full SHA 75d2226View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d8aa59 - Browse repository at this point
Copy the full SHA 4d8aa59View commit details
Commits on Jul 25, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 9492176 - Browse repository at this point
Copy the full SHA 9492176View commit details -
Add regression test for issue rust-lang#18804
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e8bc064 - Browse repository at this point
Copy the full SHA e8bc064View commit details -
Properly set the linkage type on non-local statics
Fixes issue rust-lang#18804 Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a20262c - Browse repository at this point
Copy the full SHA a20262cView commit details -
Deduplicate linkage checking code for statics
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0bcbe91 - Browse repository at this point
Copy the full SHA 0bcbe91View commit details -
Disable regression test for issue rust-lang#18804 on Emscripten and A…
…smjs The Emscripten compiler does not support weak symbols at the moment. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e58e7b0 - Browse repository at this point
Copy the full SHA e58e7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40c0339 - Browse repository at this point
Copy the full SHA 40c0339View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5256b7 - Browse repository at this point
Copy the full SHA d5256b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d79588 - Browse repository at this point
Copy the full SHA 1d79588View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3298b9f - Browse repository at this point
Copy the full SHA 3298b9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bd94e0 - Browse repository at this point
Copy the full SHA 7bd94e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a893cc - Browse repository at this point
Copy the full SHA 9a893ccView commit details -
ARM: expose
rclass
anddsp
target features- `dsp`: the subtarget supports the DSP (saturating arith. and such) instructions - `rclass`: target is a Cortex-R Both features are useful to support ARM MCUs on `coresimd`. Note: Cortex-R52 is the first Armv8-R with `neon` support
Configuration menu - View commit details
-
Copy full SHA for 580f437 - Browse repository at this point
Copy the full SHA 580f437View commit details -
Configuration menu - View commit details
-
Copy full SHA for f653bf4 - Browse repository at this point
Copy the full SHA f653bf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef5fba0 - Browse repository at this point
Copy the full SHA ef5fba0View commit details -
Configuration menu - View commit details
-
Copy full SHA for eacfd72 - Browse repository at this point
Copy the full SHA eacfd72View commit details -
Place the ignore comments in the correct file for test issue-18804
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for be5b668 - Browse repository at this point
Copy the full SHA be5b668View commit details -
Configuration menu - View commit details
-
Copy full SHA for abb704e - Browse repository at this point
Copy the full SHA abb704eView commit details
Commits on Jul 26, 2018
-
Configuration menu - View commit details
-
Copy full SHA for bce8a91 - Browse repository at this point
Copy the full SHA bce8a91View commit details -
rustc: Register crates under their real names
Whenever we register a crate into the crate store, make sure to use the real name mentioned in the metadata instead of the name mentioned in the `extern crate` statement, as the statement can be wrong! Closes rust-lang#51796
Configuration menu - View commit details
-
Copy full SHA for f069a57 - Browse repository at this point
Copy the full SHA f069a57View commit details -
sparc ABI issue - structure returning from function is returned
in 64bit registers Fixes: rust-lang#52638
Configuration menu - View commit details
-
Copy full SHA for 051eddd - Browse repository at this point
Copy the full SHA 051edddView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc2bd71 - Browse repository at this point
Copy the full SHA cc2bd71View commit details -
Rollup merge of rust-lang#52558 - wesleywiser:ice_melting, r=estebank
Add tests for ICEs which no longer repro Adds tests for some ICEs which no longer repro and closes the associated issues.
Configuration menu - View commit details
-
Copy full SHA for e29f15b - Browse repository at this point
Copy the full SHA e29f15bView commit details -
Rollup merge of rust-lang#52610 - MajorBreakfast:task-terminology, r=…
…cramertj Clarify what a task is Currently we call two distinct concepts "task": 1. The top-level future that is polled until completion 2. The lightweight "thread" that is responsible for polling the top-level future. What additional data beside the future is stored in this type varies between different `Executor` implementations. I'd prefer to return to the old formulation by @alexcrichton: ```rust /// A handle to a "task", which represents a single lightweight "thread" of /// execution driving a future to completion. pub struct Task { ``` Source: [`task_impl/mod.rs` in futures-rs 0.1](https://github.com/rust-lang-nursery/futures-rs/blob/1328fc9e8af5737183df477c7501e6ea24ff2053/src/task_impl/mod.rs#L49-L50) I think that this change will make it much easier to explain everything. r? @aturon @cramertj
Configuration menu - View commit details
-
Copy full SHA for 0127704 - Browse repository at this point
Copy the full SHA 0127704View commit details -
Rollup merge of rust-lang#52617 - matthewjasper:remove-unused-code, r…
…=nikomatsakis Don't match on region kinds when reporting NLL errors First half (by number of tests affected) of the changes to "does not live long enough". Now that lexical MIR borrowck is gone, region kinds are always ReVar, so matching on them to change errors does nothing. Changes "borrowed value only lives until here" to "`x` is dropped here while still borrowed". r? @pnkfelix cc @nikomatsakis
Configuration menu - View commit details
-
Copy full SHA for 2aeb765 - Browse repository at this point
Copy the full SHA 2aeb765View commit details -
Rollup merge of rust-lang#52635 - yodaldevoid:issue_18804, r=oli-obk
Fix #[linkage] propagation though generic functions Fixes rust-lang#18804 In the non-local branch of `get_static` (where the fix was implemented) `span_fatal` had to be replaced with `bug!` as we have no span in that case.
Configuration menu - View commit details
-
Copy full SHA for c7555ce - Browse repository at this point
Copy the full SHA c7555ceView commit details -
Rollup merge of rust-lang#52647 - csmoe:closure_arg_ignore, r=estebank
Suggest to take and ignore args while closure args count mismatching Closes rust-lang#52473
Configuration menu - View commit details
-
Copy full SHA for 662fb06 - Browse repository at this point
Copy the full SHA 662fb06View commit details -
Rollup merge of rust-lang#52649 - estebank:fmt-span, r=oli-obk
Point spans to inner elements of format strings - Point at missing positional specifiers in string literal ``` error: invalid reference to positional arguments 3, 4 and 5 (there are 3 arguments) --> $DIR/ifmt-bad-arg.rs:34:38 | LL | format!("{name} {value} {} {} {} {} {} {}", 0, name=1, value=2); | ^^ ^^ ^^ | = note: positional arguments are zero-based ``` - Point at named formatting specifier in string literal ``` error: there is no argument named `foo` --> $DIR/ifmt-bad-arg.rs:37:17 | LL | format!("{} {foo} {} {bar} {}", 1, 2, 3); | ^^^^^ ``` - Update label for formatting string in "multiple unused formatting arguments" to be more correct ``` error: multiple unused formatting arguments --> $DIR/ifmt-bad-arg.rs:42:17 | LL | format!("", 1, 2); //~ ERROR: multiple unused formatting arguments | -- ^ ^ | | | multiple missing formatting specifiers ``` - When using `printf` string formatting, provide a structured suggestion instead of a note ``` error: multiple unused formatting arguments --> $DIR/format-foreign.rs:12:30 | LL | println!("%.*3$s %s!/n", "Hello,", "World", 4); //~ ERROR multiple unused formatting arguments | -------------- ^^^^^^^^ ^^^^^^^ ^ | | | multiple missing formatting specifiers | = note: printf formatting not supported; see the documentation for `std::fmt` help: format specifiers in Rust are written using `{}` | LL | println!("{:.2$} {}!/n", "Hello,", "World", 4); //~ ERROR multiple unused formatting arguments | ^^^^^^ ^^ ```
Configuration menu - View commit details
-
Copy full SHA for 2aec4e8 - Browse repository at this point
Copy the full SHA 2aec4e8View commit details -
Rollup merge of rust-lang#52654 - alecmocatta:master, r=alexcrichton
Format linker args in a way that works for gcc and ld Pass multiple linker arguments rather than concatenate with commas (fixes rust-lang#52634). `-l library` -> `-llibrary` to work with apple's ld. To build with apple's ld I'm currently also passing `-C link-args="-arch x86_64 -macosx_version_min 10.13.0"`. I'll try and understand the latter flag better before PRing that. This PR currently works for me. Hopefully CI will pick up any grievous ramifications in other toolchains? Thanks to @alexcrichton for the pointer to the relevant code!
Configuration menu - View commit details
-
Copy full SHA for 9f91195 - Browse repository at this point
Copy the full SHA 9f91195View commit details -
Rollup merge of rust-lang#52667 - japaric:stdsimd-up, r=alexcrichton
update the stdsimd submodule to bring in the doc generation fix r? @alexcrichton cc @Mark-Simulacrum
Configuration menu - View commit details
-
Copy full SHA for 007177c - Browse repository at this point
Copy the full SHA 007177cView commit details -
Rollup merge of rust-lang#52674 - tinaun:patch-2, r=cramertj
Impl Executor for Box<E: Executor> removes the need for the compatibility lib between futures 0.1 and 0.3 to use a wrapper type to implement Executor for Box<Executor>
Configuration menu - View commit details
-
Copy full SHA for 7c09bab - Browse repository at this point
Copy the full SHA 7c09babView commit details -
Rollup merge of rust-lang#52690 - paoloteti:rclass-dsp, r=alexcrichton
ARM: expose `rclass` and `dsp` target features - `dsp`: the subtarget supports the DSP (saturating arith. and such) instructions - `rclass`: target is a Cortex-R Both features are useful to support ARM MCUs on `coresimd`. Note: Cortex-R52 is the first Armv8-R with `neon` support. r? @alexcrichton cc @japaric
Configuration menu - View commit details
-
Copy full SHA for 37835be - Browse repository at this point
Copy the full SHA 37835beView commit details -
Rollup merge of rust-lang#52692 - ljedrz:sort_improvements, r=petroch…
…enkov Improve readability in a few sorts Use `sort_by_key` where possible.
Configuration menu - View commit details
-
Copy full SHA for 55fa4c7 - Browse repository at this point
Copy the full SHA 55fa4c7View commit details -
Rollup merge of rust-lang#52695 - oli-obk:const_err_panic, r=petroche…
…nkov Hide some lints which are not quite right the way they are reported to the user fixes rust-lang#52603
Configuration menu - View commit details
-
Copy full SHA for cc7a826 - Browse repository at this point
Copy the full SHA cc7a826View commit details -
Rollup merge of rust-lang#52718 - fintelia:patch-2, r=cramertj
State default capacity for BufReader/BufWriter Addresses rust-lang#52513
Configuration menu - View commit details
-
Copy full SHA for 091a10e - Browse repository at this point
Copy the full SHA 091a10eView commit details -
Rollup merge of rust-lang#52721 - cramertj:try-poll, r=aturon
std::ops::Try impl for std::task::Poll I originally left out the `Try` impl for `Poll` because I was curious if we needed it, and @MajorBreakfast and I had discussed the potential for it to introduce confusion about exactly what control-flow was happening at different points. However, after porting a pretty significant chunk of Fuchsia over to futures 0.3, I discovered that I was *constantly* having to do repetitive matching on `Poll<Result<...>>` or `Poll<Option<Result<...>>>` in order to propagate errors correctly. `try_poll` (propagate `Poll::Ready(Err(..))`s) helped in some places, but it was far more common to need some form of conversion between `Result`, `Poll<Result<...>>`, and `Poll<Option<Result<...>>>`. The `Try` trait conveniently provides all of these conversions in addition to a more concise syntax (`?`), so I'd like to experiment with using these instead. cc @seanmonstar r? @aturon Note: this change means that far more futures 0.1 code can work without significant changes since it papers over the fact that `Result` is no longer at the top-level when using `Stream` and `Future` (since it's now `Poll<Result<...>>` or `Poll<Option<Result<...>>>` instead of `Result<Poll<..>>` and `Result<Poll<Option<...>>>`).
Configuration menu - View commit details
-
Copy full SHA for 858adfe - Browse repository at this point
Copy the full SHA 858adfeView commit details -
Rollup merge of rust-lang#52723 - alexcrichton:fix-extern-rename-ice,…
… r=estebank rustc: Register crates under their real names Whenever we register a crate into the crate store, make sure to use the real name mentioned in the metadata instead of the name mentioned in the `extern crate` statement, as the statement can be wrong! Closes rust-lang#51796
Configuration menu - View commit details
-
Copy full SHA for d1e549c - Browse repository at this point
Copy the full SHA d1e549cView commit details -
Rollup merge of rust-lang#52734 - nagisa:sparcfix, r=oli-obk
sparc ABI issue - structure returning from function is returned in 64bit registers (with tests) Fixes rust-lang#52638 Supersedes rust-lang#52730 cc @psumbera
Configuration menu - View commit details
-
Copy full SHA for 995d719 - Browse repository at this point
Copy the full SHA 995d719View commit details