- 26 3月, 2020 6 次提交
-
-
由 Dylan DPC 提交于
fix incorrect type name in doc comments Change : `InterpCtx` => `InterpCx` (`rustc_mir::interpret::InterpCx`)
-
由 Dylan DPC 提交于
Implement Fuse with Option The former `done` flag was roughly similar to an `Option` tag, but left the possibity of misuse. By using a real `Option`, we can set `None` when the iterator is exhausted, removing any way to call it again. We also allow niche layout this way, so the `Fuse` may be smaller. The `FusedIterator` specialization does want to ignore the possibility of exhaustion though, so it uses `unsafe { intrinsics::unreachable() }` to optimize that branch away. The entire `Fuse` implementation is now isolated in its own module to contain that unsafety. r? @scottmcm
-
由 Dylan DPC 提交于
Add long error explanation for E0710 Add long explanation for the E0710 error code Part of #61137 r? @GuillaumeGomez
-
由 Dylan DPC 提交于
correctly normalize constants closes #70317 implements https://github.com/rust-lang/rust/issues/70125#issuecomment-602133708 r? eddyb cc @varkor
-
由 Dylan DPC 提交于
use checked casts and arithmetic in Miri engine This is unfortunately pretty annoying because we have to cast back and forth between `u64` and `usize` more often that should be necessary, and that cast is considered fallible. For example, should [this](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/interpret/value/enum.ConstValue.html) really be `usize`? Also, `LayoutDetails` uses `usize` for field indices, but in Miri we use `u64` to be able to also handle array indexing. Maybe methods like `mplace_field` should be suitably generalized to accept both `u64` and `usize`? r? @oli-obk Cc @EddyB
-
由 Josh Stone 提交于
-
- 25 3月, 2020 34 次提交
-
-
由 Bastian Kauschke 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
add helper method for ptr ops on Scalar; reduce unnecessary large operand of overflowing_signed_offset
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 Ralf Jung 提交于
-
由 bors 提交于
Clean up debugging options I found various sub-optimal things when I was looking at option handling.
-
由 bishtpawan 提交于
-
由 bors 提交于
Rollup of 7 pull requests Successful merges: - #70331 (Increase verbosity when using update syntax with private fields) - #70349 (move `hir_id_validation` to `rustc_passes` + simplify `hir::map` code) - #70361 (Update backtrace crate to 0.3.46) - #70364 (resolve: Remove `rustc_attrs` as a standalone feature gate) - #70369 (Fix smaller issues with invalid placeholder type errors) - #70373 (normalize some imports & prefer direct ones) - #70376 (Add test for #66312) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
Add test for #66312 Closes #66312. This issue was fixed by #68884. r? @Zoxc
-
由 Mazdak Farrokhzad 提交于
normalize some imports & prefer direct ones r? @Mark-Simulacrum
-
由 Mazdak Farrokhzad 提交于
Fix smaller issues with invalid placeholder type errors Follow up to #70294. - Fix placement of suggested generic param when bounds are present. - Reduce error duplication for invalid placeholder types in `fn` types. r? @Centril
-
由 Mazdak Farrokhzad 提交于
resolve: Remove `rustc_attrs` as a standalone feature gate Now it only gates specific built-in attributes. So if you want to make a rustc attribute, make it a built-in (this was already the case in practice for some time).
-
由 Mazdak Farrokhzad 提交于
Update backtrace crate to 0.3.46 * Support line-tables-only when using libbacktrace * Update libbacktrace to latest master * Define HAVE_KERN_PROC on FreeBSD to fix rust-lang/rust#54434
-
由 Mazdak Farrokhzad 提交于
move `hir_id_validation` to `rustc_passes` + simplify `hir::map` code r? @Zoxc
-
由 Mazdak Farrokhzad 提交于
Increase verbosity when using update syntax with private fields Resolves #70323
-
由 Youngsuk Kim 提交于
InterpCtx => InterpCx (rustc_mir::interpret::InterpCx)
-
由 Esteban Küber 提交于
-
由 Tyler Mandry 提交于
Closes #66312. This issue was fixed by #68884.
-
由 Mazdak Farrokhzad 提交于
-
由 bors 提交于
Rollup of 8 pull requests Successful merges: - #70023 (clean up E0436 explanation) - #70234 (#[track_caller] on core::ops::{Index, IndexMut}.) - #70241 (Miri: move ModifiedStatic to ConstEval errors) - #70342 (IoSlice/IoSliceMut should be Send and Sync) - #70350 (Request "-Z unstable-options" for unstable options) - #70355 (Clean up E0454) - #70359 (must_use on split_off) - #70368 (Mark hotplug_codegen_backend as ignore-stage1) Failed merges: r? @ghost
-
由 Mazdak Farrokhzad 提交于
Mark hotplug_codegen_backend as ignore-stage1 Suggested by @EddyB in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/do.20we.20really.20need.20stage2.2E.2E.3F/near/191659846.
-
由 Mazdak Farrokhzad 提交于
must_use on split_off A couple more for #70194
-
由 Mazdak Farrokhzad 提交于
Clean up E0454 r? @Dylan-DPC
-
由 Mazdak Farrokhzad 提交于
Request "-Z unstable-options" for unstable options Explicitly requests the "-Z unstable-options" flag if someone attempts to use a cargo option gated by it. This enhances discoverability, particularly in the instance where the user is on the nightly compiler but isn't using the flag. This relates to, but does not end with or resolve, issue #65770.
-
由 Mazdak Farrokhzad 提交于
IoSlice/IoSliceMut should be Send and Sync Closes #70308
-
由 Mazdak Farrokhzad 提交于
Miri: move ModifiedStatic to ConstEval errors Also generally adjust terminology from "static" to "global" where appropriate (to avoid confusion with specifically `static` items).
-
由 Mazdak Farrokhzad 提交于
#[track_caller] on core::ops::{Index, IndexMut}. Applies the attribute to `core::ops::Index(Mut)` and enough std internals to cover the [functions listed in "tier 1" in the original RFC](https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md#survey-of-panicking-standard-functions). Split out from #69251 to allow separate assessment of perf impact. To my knowledge, this is the last piece of implementing RFC 2091. Tracking issue: https://github.com/rust-lang/rust/issues/47809
-