- 30 3月, 2020 14 次提交
-
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 bors 提交于
Make `Visitor::visit_body` take a plain `&Body` `ReadOnlyBodyAndCache` has replaced `&Body` in many parts of the code base that don't care about basic block predecessors. This includes the MIR `Visitor` trait, which I suspect resulted in many unnecessary changes in #64736. This reverts part of that PR to reduce the number of places where we need to pass a `ReadOnlyBodyAndCache`. In the long term, we should either give `ReadOnlyBodyAndCache` more ergonomic name and replace all uses of `&mir::Body` with it at the cost of carrying an extra pointer everywhere, or use it only in places that actually need access to the predecessor cache. Perhaps there is an even nicer alternative. r? @Nashenas88
-
由 bors 提交于
Tweak `suggest_constraining_type_param` Some of the bound restriction structured suggestions were incorrect while others had subpar output. The only issue left is a suggestion for an already present bound when dealing with `const`s that should be handled independently. Fix #69983.
-
由 Dylan MacKenzie 提交于
-
由 Esteban Küber 提交于
Some of the bound restriction structured suggestions were incorrect while others had subpar output.
-
由 Dylan DPC 提交于
#[link]: mention wasm_import_module instead of cfg `#[link(cfg)]` is perma-unstable and is not documented anywhere else. It makes more sense to mention `wasm_import_module` here since it's stable. This makes it harder to hit https://github.com/rust-lang/rust/issues/70538 (if it weren't for this text, I wouldn't even know this feature existed).
-
由 Dylan DPC 提交于
add test for 62220 Closes #62220 Adds a test for https://github.com/rust-lang/rust/issues/62220. Im not sure whether `check-pass` is sufficient here. I didn't put `run-pass` in, as I'm afraid that'll fail due to the `unimplemented!()` return in the code.
-
由 Dylan DPC 提交于
Rename TyLayout to TyAndLayout.
-
由 Dylan MacKenzie 提交于
-
由 Bastian Kauschke 提交于
-
由 Dodo 提交于
-
- 29 3月, 2020 26 次提交
-
-
由 Jonas Schievink 提交于
-
由 Mazdak Farrokhzad 提交于
Update LLVM submodule Fixes #70148
-
由 Mazdak Farrokhzad 提交于
reduce `rustc_attr` usage in places This cleans up some unused `rustc_attr` dependencies.
-
由 Mazdak Farrokhzad 提交于
Add Result<Result<T, E>, E>::flatten -> Result<T, E> This PR makes this possible (modulo type inference): ```rust assert_eq!(Ok(6), Ok(Ok(6)).flatten()); ``` Tracking issue: #70142 <sub>largely cribbed directly from <https://github.com/rust-lang/rust/pull/60256></sub>
-
由 Amanieu d'Antras 提交于
-
由 Mazdak Farrokhzad 提交于
-
由 Mazdak Farrokhzad 提交于
BTreeMap testing: introduce symbolic constants and use height consistently Doesn't change what or how much is tested, except for some exact integer types, just for convenience and because `node::CAPACITY` is a usize. r? @RalfJung
-
由 Mazdak Farrokhzad 提交于
Add copy bound to atomic & numeric intrinsics
-
由 Mazdak Farrokhzad 提交于
impl From<[T; N]> for Vec<T> Closes https://github.com/rust-lang/rust/issues/67963
-
由 bors 提交于
Remove attribute `#[structural_match]` and any references to it A small remaining part of https://github.com/rust-lang/rust/issues/63438.
-
由 bors 提交于
Rollup of 5 pull requests Successful merges: - #69937 (ASCII methods on OsStr) - #70235 (Validate git setup before accessing functionality) - #70503 (rename Scalar::{ptr_null -> null_ptr} and add "machine_" prefix like elsewhere) - #70508 (Miri: use more specialized Scalar::from_ constructors where appropriate) - #70510 (fix TryEnterCriticalSection return type) Failed merges: r? @ghost
-
由 Dylan DPC 提交于
fix TryEnterCriticalSection return type Source: https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-tryentercriticalsection Fixes https://github.com/rust-lang/rust/issues/70504
-
由 Dylan DPC 提交于
Miri: use more specialized Scalar::from_ constructors where appropriate
-
由 Dylan DPC 提交于
rename Scalar::{ptr_null -> null_ptr} and add "machine_" prefix like elsewhere "NULL pointer" is just much more common terminology than "pointer-null". Also I forgot two methods when renaming all the `Scalar` things to `(to|from)_machine_(u|i)size`.
-
由 Dylan DPC 提交于
Validate git setup before accessing functionality Closes #70182
-
由 Dylan DPC 提交于
ASCII methods on OsStr Would close #69566 I don't know enough about encodings to know if this is a valid change, however the comment on the issue suggests it could be. This does two things: 1. Makes ASCII methods available on OsStr 2. Makes it possible to obtain a `&mut OsStr`. This is necessary to actually use `OsStr::make_ascii_*case` methods since they modify the underlying value. As far as I can tell, the only way to modify a `&mut OsStr` is via the methods I just added. My original hope was to have these methods on `OsStrExt` for Windows, since the standard library already assumes `make_ascii_uppercase` is valid in Windows (see the change I made to windows/process.rs). If it is found these are not valid changes on non-Windows platforms, I can move the methods to the ext trait instead.
-
由 TyPR124 提交于
-
由 TyPR124 提交于
-
由 TyPR124 提交于
-
由 TyPR124 提交于
-
由 TyPR124 提交于
-
由 Stein Somers 提交于
-
由 bors 提交于
Add lint when no doc is present at the crate-level Follow-up of #66267. r? @kinnison
-
由 Ralf Jung 提交于
-