-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 10 pull requests #82443
Rollup of 10 pull requests #82443
Commits on Feb 8, 2021
-
Point out implicit deref coercions in borrow
Clean up code
Configuration menu - View commit details
-
Copy full SHA for b2eed3a - Browse repository at this point
Copy the full SHA b2eed3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8412da6 - Browse repository at this point
Copy the full SHA 8412da6View commit details
Commits on Feb 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ef778e7 - Browse repository at this point
Copy the full SHA ef778e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1abc1e2 - Browse repository at this point
Copy the full SHA 1abc1e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a428ab1 - Browse repository at this point
Copy the full SHA a428ab1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f97a0b - Browse repository at this point
Copy the full SHA 9f97a0bView commit details -
Suggest correct replacement for panic![123].
Before this change, the suggestion was `std::panic::panic_any(123]`, changing the opening brace but not the closing one.
Configuration menu - View commit details
-
Copy full SHA for 37c532c - Browse repository at this point
Copy the full SHA 37c532cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ad12bb - Browse repository at this point
Copy the full SHA 8ad12bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a0c424 - Browse repository at this point
Copy the full SHA 2a0c424View commit details -
Configuration menu - View commit details
-
Copy full SHA for daa371d - Browse repository at this point
Copy the full SHA daa371dView commit details
Commits on Feb 17, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ad93f48 - Browse repository at this point
Copy the full SHA ad93f48View commit details
Commits on Feb 18, 2021
-
Implement -Z hir-stats for nested foreign items
An attempt to compute HIR stats for crates with nested foreign items results in an ICE. ``` fn main() { extern "C" { fn f(); } } ``` ``` thread 'rustc' panicked at 'visit_nested_xxx must be manually implemented in this visitor' ``` Provide required implementation of visitor method.
Configuration menu - View commit details
-
Copy full SHA for bf09e04 - Browse repository at this point
Copy the full SHA bf09e04View commit details
Commits on Feb 19, 2021
-
Consider auto derefs before warning about write only fields
Changes from 81473 extended the dead code lint with an ability to detect fields that are written to but never read from. The implementation skips over fields on the left hand side of an assignment, without marking them as live. A field access might involve an automatic dereference and de-facto read the field. Conservatively mark expressions with deref adjustments as live to avoid generating false positive warnings.
Configuration menu - View commit details
-
Copy full SHA for 343b673 - Browse repository at this point
Copy the full SHA 343b673View commit details -
Update conflict_errors.rs Add deref definition location
Configuration menu - View commit details
-
Copy full SHA for 99f4573 - Browse repository at this point
Copy the full SHA 99f4573View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fddc2f - Browse repository at this point
Copy the full SHA 0fddc2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3000ec - Browse repository at this point
Copy the full SHA b3000ecView commit details
Commits on Feb 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a00eb7e - Browse repository at this point
Copy the full SHA a00eb7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0637e4 - Browse repository at this point
Copy the full SHA f0637e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd5f603 - Browse repository at this point
Copy the full SHA cd5f603View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd4b938 - Browse repository at this point
Copy the full SHA dd4b938View commit details
Commits on Feb 21, 2021
-
Apply suggestions from code review
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Configuration menu - View commit details
-
Copy full SHA for a22d948 - Browse repository at this point
Copy the full SHA a22d948View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba22a69 - Browse repository at this point
Copy the full SHA ba22a69View commit details
Commits on Feb 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1847a6c - Browse repository at this point
Copy the full SHA 1847a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd9ab16 - Browse repository at this point
Copy the full SHA dd9ab16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c949a4 - Browse repository at this point
Copy the full SHA 4c949a4View commit details -
Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325
Configuration menu - View commit details
-
Copy full SHA for 2145a87 - Browse repository at this point
Copy the full SHA 2145a87View commit details -
Remove many RefCells from DocContext
I left some of them so this change doesn't balloon in size and because removing the RefCell in `DocContext.resolver` would require compiler changes. Thanks to `@jyn514` for making this a lot easier with rust-lang#82020!
Configuration menu - View commit details
-
Copy full SHA for e4ac499 - Browse repository at this point
Copy the full SHA e4ac499View commit details
Commits on Feb 23, 2021
-
Rollup merge of rust-lang#81629 - 1000teslas:issue-81365-fix, r=Aaron…
…1011 Point out implicit deref coercions in borrow Fixes rust-lang#81365 `@Aaron1011` I'm not sure why my code shows the note even in an implicit `Deref` call. See the output for `issue-81365-8.rs`.
Configuration menu - View commit details
-
Copy full SHA for 18d1284 - Browse repository at this point
Copy the full SHA 18d1284View commit details -
Rollup merge of rust-lang#82113 - m-ou-se:panic-format-lint, r=estebank
Improve non_fmt_panic lint. This change: - fixes the span used by this lint in the case the panic argument is a single macro expansion (e.g. `panic!(a!())`); - adds a suggestion for `panic!(format!(..))` to remove `format!()` instead of adding `"{}", ` or using `panic_any` like it does now; and - fixes the incorrect suggestion to replace `panic![123]` by `panic_any(123]`. Fixes rust-lang#82109. Fixes rust-lang#82110. Fixes rust-lang#82111. Example output: ``` warning: panic message is not a string literal --> src/main.rs:8:12 | 8 | panic!(format!("error: {}", "oh no")); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 8 | panic!("error: {}", "oh no"); | -- -- ``` r? `@estebank`
Configuration menu - View commit details
-
Copy full SHA for 547b3ad - Browse repository at this point
Copy the full SHA 547b3adView commit details -
Rollup merge of rust-lang#82258 - tmiasko:foreign-hir-stats, r=davidtwco
Implement -Z hir-stats for nested foreign items An attempt to compute HIR stats for crates with nested foreign items results in an ICE. ```rust fn main() { extern "C" { fn f(); } } ``` ``` thread 'rustc' panicked at 'visit_nested_xxx must be manually implemented in this visitor' ``` Provide required implementation of visitor method.
Configuration menu - View commit details
-
Copy full SHA for 2982ba5 - Browse repository at this point
Copy the full SHA 2982ba5View commit details -
Rollup merge of rust-lang#82296 - spastorino:pubrules, r=nikomatsakis
Support `pub` on `macro_rules` This rebases and updates `since` version of rust-lang#78166 from ``@petrochenkov`` r? ``@nikomatsakis``
Configuration menu - View commit details
-
Copy full SHA for e2561c5 - Browse repository at this point
Copy the full SHA e2561c5View commit details -
Rollup merge of rust-lang#82297 - tmiasko:write-only, r=oli-obk
Consider auto derefs before warning about write only fields Changes from rust-lang#81473 extended the dead code lint with an ability to detect fields that are written to but never read from. The implementation skips over fields on the left hand side of an assignment, without marking them as live. A field access might involve an automatic dereference and de-facto read the field. Conservatively mark expressions with deref adjustments as live to avoid generating false positive warnings. Closes rust-lang#81626.
Configuration menu - View commit details
-
Copy full SHA for 9d378b3 - Browse repository at this point
Copy the full SHA 9d378b3View commit details -
Rollup merge of rust-lang#82305 - camelid:no-more-refcell, r=jyn514
Remove many RefCells from DocContext I left some of them so this change doesn't balloon in size and because removing the RefCell in `DocContext.resolver` would require compiler changes. Thanks to `@jyn514` for making this a lot easier with rust-lang#82020! r? `@jyn514`
Configuration menu - View commit details
-
Copy full SHA for 8e67fe5 - Browse repository at this point
Copy the full SHA 8e67fe5View commit details -
Rollup merge of rust-lang#82308 - estebank:issue-82290, r=lcnr
Lower condition of `if` expression before it's "then" block Fix rust-lang#82290, fix rust-lang#82250.
Configuration menu - View commit details
-
Copy full SHA for 269f399 - Browse repository at this point
Copy the full SHA 269f399View commit details -
Rollup merge of rust-lang#82311 - aDotInTheVoid:jsondocck-improvement…
…s, r=jyn514 Jsondocck improvements Adds 2 new commands, ```@is``` and ```@set`.`` ```@is``` works like ```@has`,`` except instead of checking if any value matches, it checks that there is exactly one value, and it matches. This allows more precise testing. ```@set``` gets a value, and saves it to be used later. This makes it possible to check that an item appears in the correct module. Once this lands, the rest of the test suite can be upgraded to use these. cc ``@CraftSpider`` ``@rustbot`` modify labels: +T-rustdoc +A-rustdoc-json +A-testsuite
Configuration menu - View commit details
-
Copy full SHA for 619e47b - Browse repository at this point
Copy the full SHA 619e47bView commit details -
Rollup merge of rust-lang#82362 - osa1:issue81918, r=oli-obk
Fix mir-cfg dumps Fixes rust-lang#81918 Fixes rust-lang#82326 (duplicate) Fixes rust-lang#82325 --- r? ``@oli-obk``
Configuration menu - View commit details
-
Copy full SHA for aa1405f - Browse repository at this point
Copy the full SHA aa1405fView commit details -
Rollup merge of rust-lang#82391 - RalfJung:miri-atomic-minmax, r=dtolnay
disable atomic_max/min tests in Miri Disable some tests that currently [fail in Miri](https://travis-ci.com/github/RalfJung/miri-test-libstd/builds/217788631).
Configuration menu - View commit details
-
Copy full SHA for 51511c7 - Browse repository at this point
Copy the full SHA 51511c7View commit details