-
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 12 pull requests #81748
Rollup of 12 pull requests #81748
Commits on Jan 26, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8909830 - Browse repository at this point
Copy the full SHA 8909830View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07cd499 - Browse repository at this point
Copy the full SHA 07cd499View commit details
Commits on Jan 28, 2021
-
Fix rustc sysroot in systems using CAS
Change filesearch::get_or_default_sysroot() to check if sysroot is found using env::args().next() if rustc in argv[0] is a symlink; otherwise, or if it is not found, use env::current_exe() to imply sysroot. This makes the rustc binary able to locate Rust libraries in systems using content-addressable storage (CAS).
Configuration menu - View commit details
-
Copy full SHA for 3f679fe - Browse repository at this point
Copy the full SHA 3f679feView commit details
Commits on Jan 29, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a2f5c72 - Browse repository at this point
Copy the full SHA a2f5c72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c60d27 - Browse repository at this point
Copy the full SHA 1c60d27View commit details -
rustdoc: Move
display_fn
struct insidedisplay_fn
This makes it clear that it's an implementation detail of `display_fn` and shouldn't be used elsewhere, and it enforces in the compiler that no one else can use it.
Configuration menu - View commit details
-
Copy full SHA for c34faad - Browse repository at this point
Copy the full SHA c34faadView commit details
Commits on Feb 2, 2021
-
introduce future-compatibility warning for forbidden lint groups
We used to ignore `forbid(group)` scenarios completely. This changed in rust-lang#78864, but that led to a number of regressions (rust-lang#80988, rust-lang#81218). This PR introduces a future compatibility warning for the case where a group is forbidden but then an individual lint within that group is allowed. We now issue a FCW when we see the "allow", but permit it to take effect.
Configuration menu - View commit details
-
Copy full SHA for b6b897b - Browse repository at this point
Copy the full SHA b6b897bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e6608d - Browse repository at this point
Copy the full SHA 6e6608dView commit details
Commits on Feb 3, 2021
-
OsStr eq_ignore_ascii_case takes arg by value
Per a comment on rust-lang#70516 this changes `eq_ignore_ascii_case` to take the generic parameter `S: AsRef<OsStr>` by value instead of by reference. This is technically a breaking change to an unstable method. I think the only way it would break is if you called this method with an explicit type parameter, ie `my_os_str.eq_ignore_ascii_case::<str>("foo")` becomes `my_os_str.eq_ignore_ascii_case::<&str>("foo")`. Besides that, I believe it is overall more flexible since it can now take an owned `OsString` for example. If this change should be made in some other PR (like rust-lang#80193) then please just close this.
Configuration menu - View commit details
-
Copy full SHA for 4d1efb7 - Browse repository at this point
Copy the full SHA 4d1efb7View commit details -
Add more information to the error code for 'crate not found'
This comes up a lot when bootstrapping.
Configuration menu - View commit details
-
Copy full SHA for 82914a5 - Browse repository at this point
Copy the full SHA 82914a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3719247 - Browse repository at this point
Copy the full SHA 3719247View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8988238 - Browse repository at this point
Copy the full SHA 8988238View commit details -
Add lint for
panic!(123)
which is not accepted in Rust 2021.This extends the `panic_fmt` lint to warn for all cases where the first argument cannot be interpreted as a format string, as will happen in Rust 2021. It suggests to add `"{}", ` to format the message as a string. In the case of `std::panic!()`, it also suggests the recently stabilized `std::panic::panic_any()` function as an alternative. It renames the lint to `non_fmt_panic` to match the lint naming guidelines.
Configuration menu - View commit details
-
Copy full SHA for a616f82 - Browse repository at this point
Copy the full SHA a616f82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34d5ac2 - Browse repository at this point
Copy the full SHA 34d5ac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9ad5be - Browse repository at this point
Copy the full SHA e9ad5beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 753b0b0 - Browse repository at this point
Copy the full SHA 753b0b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f3eb89 - Browse repository at this point
Copy the full SHA 3f3eb89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0870c15 - Browse repository at this point
Copy the full SHA 0870c15View commit details
Commits on Feb 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 5c056ed - Browse repository at this point
Copy the full SHA 5c056edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 26af55f - Browse repository at this point
Copy the full SHA 26af55fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e0940 - Browse repository at this point
Copy the full SHA 24e0940View commit details -
Rollup merge of rust-lang#79253 - rcvalle:fix-rustc-sysroot-cas, r=na…
…gisa Fix rustc sysroot in systems using CAS Change filesearch::get_or_default_sysroot() to check if sysroot is found using env::args().next() if rustc in argv[0] is a symlink; otherwise, or if it is not found, use env::current_exe() to imply sysroot. This makes the rustc binary able to locate Rust libraries in systems using content-addressable storage (CAS).
Configuration menu - View commit details
-
Copy full SHA for e390c63 - Browse repository at this point
Copy the full SHA e390c63View commit details -
Rollup merge of rust-lang#79805 - m-ou-se:iterator-reduce, r=KodrAus
Rename Iterator::fold_first to reduce and stabilize it This stabilizes `#![feature(iterator_fold_self)]`. The name for this function (originally `fold_first`) was still an open question, but the discussion on [the tracking issue](rust-lang#68125) seems to have converged to `reduce`.
Configuration menu - View commit details
-
Copy full SHA for 08b4289 - Browse repository at this point
Copy the full SHA 08b4289View commit details -
Rollup merge of rust-lang#81318 - CraftSpider:json-trait-fix, r=jyn514
rustdoc-json: Fix has_body Previously, `has_body` was always true. Now propagate the type of the method to set it correctly. Relies on rust-lang#81287, that will need to be merged first.
Configuration menu - View commit details
-
Copy full SHA for e16b0bf - Browse repository at this point
Copy the full SHA e16b0bfView commit details -
Rollup merge of rust-lang#81402 - ehuss:md-tidy, r=jyn514
tidy: Run tidy style against markdown files. This adds tidy checks for markdown files. I think it is useful to have some style enforcement (for the same reasons the style is enforced on other files). I think it is worthwhile to avoid `ignore` on rust examples since having broken code in documentation is frustrating. Avoiding trailing whitespace is good because it has semantic meaning in markdown, which I think should be avoided.
Configuration menu - View commit details
-
Copy full SHA for 93d5b5f - Browse repository at this point
Copy the full SHA 93d5b5fView commit details -
Rollup merge of rust-lang#81497 - camelid:rustdoc-display_fn-remove-c…
…ell, r=jyn514 rustdoc: Move `display_fn` struct inside `display_fn` This makes it clear that it's an implementation detail of `display_fn` and shouldn't be used elsewhere, and it enforces in the compiler that no one else can use it. r? `@GuillaumeGomez`
Configuration menu - View commit details
-
Copy full SHA for e044c57 - Browse repository at this point
Copy the full SHA e044c57View commit details -
Rollup merge of rust-lang#81556 - nikomatsakis:forbidden-lint-groups-…
…lint, r=pnkfelix introduce future-compatibility warning for forbidden lint groups We used to ignore `forbid(group)` scenarios completely. This changed in rust-lang#78864, but that led to a number of regressions (rust-lang#80988, rust-lang#81218). This PR introduces a future compatibility warning for the case where a group is forbidden but then an individual lint within that group is allowed. We now issue a FCW when we see the "allow", but permit it to take effect. r? ```@Mark-Simulacrum```
Configuration menu - View commit details
-
Copy full SHA for ed4d311 - Browse repository at this point
Copy the full SHA ed4d311View commit details -
Rollup merge of rust-lang#81645 - m-ou-se:panic-lint, r=estebank,flip…
…1995 Add lint for `panic!(123)` which is not accepted in Rust 2021. This extends the `panic_fmt` lint to warn for all cases where the first argument cannot be interpreted as a format string, as will happen in Rust 2021. It suggests to add `"{}",` to format the message as a string. In the case of `std::panic!()`, it also suggests the recently stabilized `std::panic::panic_any()` function as an alternative. It renames the lint to `non_fmt_panic` to match the lint naming guidelines. ![image](https://user-images.githubusercontent.com/783247/106520928-675ea680-64d5-11eb-81f7-d8fa48b93a0b.png) This is part of rust-lang#80162. r? `@estebank`
Configuration menu - View commit details
-
Copy full SHA for aa197c3 - Browse repository at this point
Copy the full SHA aa197c3View commit details -
Rollup merge of rust-lang#81676 - jyn514:crate-not-found, r=oli-obk
Add more information to the error code for 'crate not found' This comes up a lot when bootstrapping.
Configuration menu - View commit details
-
Copy full SHA for 36e28a2 - Browse repository at this point
Copy the full SHA 36e28a2View commit details -
Rollup merge of rust-lang#81682 - JulianKnodt:bit_set_iter_benchmarks…
…, r=oli-obk Add additional bitset benchmarks Add additional benchmarks for operations in bitset, I realize that it was a bit lacking when I intended to optimize it earlier, so I was hoping to put some in so I can verify my work later.
Configuration menu - View commit details
-
Copy full SHA for 0f22b9f - Browse repository at this point
Copy the full SHA 0f22b9fView commit details -
Rollup merge of rust-lang#81710 - TyPR124:patch-2, r=m-ou-se
OsStr eq_ignore_ascii_case takes arg by value Per a comment on rust-lang#70516 this changes `eq_ignore_ascii_case` to take the generic parameter `S: AsRef<OsStr>` by value instead of by reference. This is technically a breaking change to an unstable method. I think the only way it would break is if you called this method with an explicit type parameter, ie `my_os_str.eq_ignore_ascii_case::<str>("foo")` becomes `my_os_str.eq_ignore_ascii_case::<&str>("foo")`. Besides that, I believe it is overall more flexible since it can now take an owned `OsString` for example. If this change should be made in some other PR (like rust-lang#80193) then please just close this.
Configuration menu - View commit details
-
Copy full SHA for 6072a3a - Browse repository at this point
Copy the full SHA 6072a3aView commit details -
Rollup merge of rust-lang#81725 - mark-i-m:mv-test, r=Mark-Simulacrum
Move test to be with the others No functional changes. I just created this test in the wrong place in a past PR. All of the other or-pattern tests are in the `or-patterns` directory.
Configuration menu - View commit details
-
Copy full SHA for e213c7c - Browse repository at this point
Copy the full SHA e213c7cView commit details -
Rollup merge of rust-lang#81727 - m-ou-se:unstabilize-bits, r=Mark-Si…
…mulacrum Revert stabilizing integer::BITS. We agreed in the libs meeting just now to revert stablization, since the [breakage](rust-lang#81654) is significant throughout the ecosystem, through `lexical-core`. cc rust-lang#76904 Fixes rust-lang#81654
Configuration menu - View commit details
-
Copy full SHA for 0e2c370 - Browse repository at this point
Copy the full SHA 0e2c370View commit details