-
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 7 pull requests #101355
Rollup of 7 pull requests #101355
Commits on Aug 22, 2022
-
safe transmute: use
Assume
struct to provide analysis optionsThis was left as a TODO in rust-lang#92268, and brings the trait more in line with what was defined in MCP411. `Assume::visibility` has been renamed to `Assume::safety`, as library safety is what's actually being assumed; visibility is just the mechanism by which it is currently checked (this may change). ref: rust-lang/compiler-team#411 ref: rust-lang#99571
Configuration menu - View commit details
-
Copy full SHA for f46fffc - Browse repository at this point
Copy the full SHA f46fffcView commit details
Commits on Aug 23, 2022
-
safe transmute: use
FxIndex{Map,Set}
instead ofFxHash{Map,Set}
resolves query instability issues, and probably better for performance
Configuration menu - View commit details
-
Copy full SHA for 1d844fe - Browse repository at this point
Copy the full SHA 1d844feView commit details
Commits on Aug 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 54645e8 - Browse repository at this point
Copy the full SHA 54645e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed9310 - Browse repository at this point
Copy the full SHA 3ed9310View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7e462a - Browse repository at this point
Copy the full SHA f7e462aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32e1823 - Browse repository at this point
Copy the full SHA 32e1823View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd8e312 - Browse repository at this point
Copy the full SHA bd8e312View commit details -
port of locator.rs to SessionDiagnostics, fix some of the errors
revealed by tests, manually add a panic to test for dead code
Configuration menu - View commit details
-
Copy full SHA for d0ba1fb - Browse repository at this point
Copy the full SHA d0ba1fbView commit details -
respond to review feedback: mainly eliminate as many conversions as p…
…ossible... - ... when creating diagnostics in rustc_metadata - use the error_code! macro - pass macro output to diag.code() - use fluent from within manual implementation of SessionDiagnostic - emit the untested errors in case they occur in the wild - stop panicking in the probably-not-dead code, add fixme to write test
Configuration menu - View commit details
-
Copy full SHA for 0d65819 - Browse repository at this point
Copy the full SHA 0d65819View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30adfd6 - Browse repository at this point
Copy the full SHA 30adfd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbcc038 - Browse repository at this point
Copy the full SHA fbcc038View commit details
Commits on Sep 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e4e4114 - Browse repository at this point
Copy the full SHA e4e4114View commit details -
Use tcx.hir() utils for spans in MIR building.
This corrects the `span_with_body` in the case of closures, which was incorrectly shortened to the `def_span`.
Configuration menu - View commit details
-
Copy full SHA for f848d27 - Browse repository at this point
Copy the full SHA f848d27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26037b1 - Browse repository at this point
Copy the full SHA 26037b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 609a90d - Browse repository at this point
Copy the full SHA 609a90dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 692064b - Browse repository at this point
Copy the full SHA 692064bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a594f0 - Browse repository at this point
Copy the full SHA 8a594f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d85dff7 - Browse repository at this point
Copy the full SHA d85dff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9e1806 - Browse repository at this point
Copy the full SHA b9e1806View commit details
Commits on Sep 2, 2022
-
Use
BCRYPT_RNG_ALG_HANDLE
by defaultAlso briefly document the history of `sys/windows/rand.rs` as they may be relevant to any future changes.
Configuration menu - View commit details
-
Copy full SHA for bc793c9 - Browse repository at this point
Copy the full SHA bc793c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 532d5f2 - Browse repository at this point
Copy the full SHA 532d5f2View commit details -
Fix unsupported syntax in .manifest file
Fuchsia .manifest files do not support a `#` comment syntax. Because of this, if you copy and paste the current example code for this file, and then remove the line you don't need, you still see an error. To make this a bit easier to follow, split this into two code blocks, one for rustc, and one for cargo.
Configuration menu - View commit details
-
Copy full SHA for 6fbc4d9 - Browse repository at this point
Copy the full SHA 6fbc4d9View commit details -
rustdoc: remove unused CSS selector
.methods > .item-info
It was added with e08a84a (actually, it was called `.methods > .stability` at the time) and was directly nested that way. But with the switch to `<details>`, the code has changed drastically out from under it, to the point where you have to go out of your way to actually get it to render this way, and the result looks overly-tight and weird alongside the normal version where this code is not reachable.
Configuration menu - View commit details
-
Copy full SHA for df09047 - Browse repository at this point
Copy the full SHA df09047View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f95c89 - Browse repository at this point
Copy the full SHA 6f95c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f29824 - Browse repository at this point
Copy the full SHA 0f29824View commit details
Commits on Sep 3, 2022
-
Rollup merge of rust-lang#100726 - jswrenn:transmute, r=oli-obk
safe transmute: use `Assume` struct to provide analysis options This task was left as a TODO in rust-lang#92268; resolving it brings [`BikeshedIntrinsicFrom`](https://doc.rust-lang.org/nightly/core/mem/trait.BikeshedIntrinsicFrom.html) more in line with the API defined in [MCP411](rust-lang/compiler-team#411). **Before:** ```rust pub unsafe trait BikeshedIntrinsicFrom< Src, Context, const ASSUME_ALIGNMENT: bool, const ASSUME_LIFETIMES: bool, const ASSUME_VALIDITY: bool, const ASSUME_VISIBILITY: bool, > where Src: ?Sized, {} ``` **After:** ```rust pub unsafe trait BikeshedIntrinsicFrom<Src, Context, const ASSUME: Assume = { Assume::NOTHING }> where Src: ?Sized, {} ``` `Assume::visibility` has also been renamed to `Assume::safety`, as library safety invariants are what's actually being assumed; visibility is just the mechanism by which it is currently checked (and that may change). r? `@oli-obk` --- Related: - rust-lang/compiler-team#411 - rust-lang#99571
Configuration menu - View commit details
-
Copy full SHA for e135e37 - Browse repository at this point
Copy the full SHA e135e37View commit details -
Rollup merge of rust-lang#100928 - CleanCut:rustc_metadata_diagnostic…
…s, r=davidtwco Migrate rustc_metadata to SessionDiagnostics Migrate rustc_metadata to SessionDiagnostics. Part of rust-lang#100717
Configuration menu - View commit details
-
Copy full SHA for 6395082 - Browse repository at this point
Copy the full SHA 6395082View commit details -
Rollup merge of rust-lang#101086 - cjgillot:thir-param, r=oli-obk
Compute information about function parameters on THIR This avoids some manipulation of typeck results while building MIR.
Configuration menu - View commit details
-
Copy full SHA for 2c0a225 - Browse repository at this point
Copy the full SHA 2c0a225View commit details -
Rollup merge of rust-lang#101325 - ChrisDenton:BCRYPT_RNG_ALG_HANDLE,…
… r=thomcc Windows RNG: Use `BCRYPT_RNG_ALG_HANDLE` by default This only changes a small amount of actual code, the rest is documentation outlining the history of this module as I feel it will be relevant to any future issues that might crop up. The code change is to use the `BCRYPT_RNG_ALG_HANDLE` [pseudo-handle](https://docs.microsoft.com/en-us/windows/win32/seccng/cng-algorithm-pseudo-handles) by default, which simply uses the default RNG. Previously we used `BCRYPT_USE_SYSTEM_PREFERRED_RNG` which has to load the system configuration and then find and load that RNG. I suspect this was the cause of failures on some systems (e.g. due to corrupted config). However, this is admittedly speculation as I can't reproduce the issue myself (and it does seem quite rare even in the wild). Still, removing a possible point of failure is likely worthwhile in any case. r? libs
Configuration menu - View commit details
-
Copy full SHA for 2739e70 - Browse repository at this point
Copy the full SHA 2739e70View commit details -
Rollup merge of rust-lang#101330 - wkordalski:hashset-drain-doc, r=jy…
…n514 Fix `std::collections::HashSet::drain` documentation Hi! `std::collections::HashSet::drain` contains small typo in the docstring. I didn't read too much about the model of contributing to Rust, so merge this PR or close and fix the typo the right way :) Thanks for Rust!
Configuration menu - View commit details
-
Copy full SHA for afed4ff - Browse repository at this point
Copy the full SHA afed4ffView commit details -
Rollup merge of rust-lang#101335 - notriddle:notriddle/methods-stabil…
…ity, r=notriddle rustdoc: remove old CSS selector that causes weird spacing It was added with e08a84a (actually, it was called `.methods > .stability` at the time) and was directly nested that way. **EDIT**: It is technically reachable code still, but it seems wrong. ## With the old CSS rule still present https://notriddle.com/notriddle-rustdoc-test/weird-spacing/lib/struct.Foo.html ![image](https://user-images.githubusercontent.com/1593513/188216226-c667c560-d33d-494f-a492-4e0ec3ac0009.png) ## Version 2 (an older version of this PR) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-2/lib/struct.Foo.html ![image](https://user-images.githubusercontent.com/1593513/188216418-9fcd3109-f1b2-425d-b4fc-0c6b3b54e48e.png) ## Version 3 (with alignment fix for mobile) https://notriddle.com/notriddle-rustdoc-test/normal-spacing-3/lib/struct.Foo.html ![image](https://user-images.githubusercontent.com/1593513/188223161-0e1ebce7-842f-41cb-8a0c-ae43aedcfccc.png)
Configuration menu - View commit details
-
Copy full SHA for 297793c - Browse repository at this point
Copy the full SHA 297793cView commit details -
Rollup merge of rust-lang#101338 - diminishedprime:patch-2, r=tmandry
Fix unsupported syntax in .manifest file Fuchsia .manifest files do not support a `#` comment syntax. Because of this, if you copy and paste the current example code for this file, and then remove the line you don't need, you still see an error. To make this a bit easier to follow, split this into two code blocks, one for rustc, and one for cargo.
Configuration menu - View commit details
-
Copy full SHA for f0fcbca - Browse repository at this point
Copy the full SHA f0fcbcaView commit details