Uh oh!
There was an error while loading. Please reload this page.
Add debug assertions to write_bytes and copy* - #62103
Conversation
rust-highfive
commented
Jun 24, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
alexcrichton
commented
Jun 25, 2019
Seems reasonable to me! r=me with @Centril's nits |
RalfJung
commented
Jun 25, 2019
@alexcrichton I had to disable some codegen tests in debug mode, because even with optimizations the new debug assertions get in the way. |
RalfJung
commented
Jun 25, 2019
So the nits are fixed, but I'd like to get explicit confirmation that it is okay to ignore some (more) codegen tests in debug mode. We do run some CI runners in release mode, right? |
alexcrichton
commented
Jun 26, 2019
@bors: r+ |
bors
commented
Jun 26, 2019
📌 Commit d3e1bf9 has been approved by |
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
RalfJung
commented
Jul 6, 2019
Building libcore with debug assertions works just fine though locally for this PR. |
Line 601 in b820c76 This together with bjron3 comment should explain it. |
bjorn3
commented
Jul 6, 2019
I think adding a second |
RalfJung
commented
Jul 7, 2019
I see, that makes sense.
I am afraid I have no idea how linkers are invoked in general and in Rust specifically. My current inclination is to add some |
nikic
commented
Jul 7, 2019
@RalfJung Replacing |
RalfJung
commented
Jul 7, 2019
So is there some kind of guarantee that the arguments of |
nikic
commented
Jul 7, 2019
@RalfJung Yes, that's exactly the difference between |
alexcrichton
commented
Jul 8, 2019
I would personally prefer to avoid updating any linkage with compiler-builtins, in general compiler-builtins should never be referencing panicking symbols. I agree with @nikic that the best solution for this is probably source-level changes in the compiler-builtins crate to avoid these assertions getting embedded, even in release mode. |
RalfJung
commented
Jul 13, 2019
All right, submitted PR for compiler-builtins: rust-lang/compiler-builtins#300. |
RalfJung
commented
Jul 15, 2019
I rebased the PR and added a commit that bumps compiler_builtins to the fresh 0.1.17 release. |
alexcrichton
commented
Jul 15, 2019
@bors: r+ |
bors
commented
Jul 15, 2019
📌 Commit 85d76a1 has been approved by |
Add debug assertions to write_bytes and copy* Looks like @nitnelave went MIA in rust-lang#58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship. Cc rust-lang#53871
Rollup of 14 pull requests Successful merges: - #62103 (Add debug assertions to write_bytes and copy*) - #62405 (Remove never_type feature requirement for exhaustive patterns) - #62491 (Fix Pin urls in Option documentation) - #62533 (Add missing links for CannotReallocInPlace type) - #62634 (Less unsafe in the array example of MaybeUninit docs) - #62639 (Make VaListImpl<'f> invariant over the 'f lifetime) - #62646 (Tweak wording in feature gate errors) - #62662 (add spaces in front of trait requirements in libcore/cell.rs) - #62668 (Fix#62660) - #62673 (miri validation: better error messages for dangling references) - #62680 (Actually call `visit_block_entry` in `DataflowResultsConsumer`) - #62685 (Add info about undefined behavior to as_ref suggestions) - #62689 (Fix typo in RawWaker::new documentation) - #62698 (SGX target: don't pretend to be GNU/Linux to LLVM) Failed merges: r? @ghost
Looks like @nitnelave went MIA in #58783, so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship.
Cc #53871