Skip to content
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

Incorrect block results from intermediate tuple #377

Closed
brson opened this issue May 16, 2011 · 0 comments
Closed

Incorrect block results from intermediate tuple #377

brson opened this issue May 16, 2011 · 0 comments

Comments

@brson
Copy link
Contributor

brson commented May 16, 2011

In the following test case a contains 0 instead of 3.

fn main() {
  auto a = {
    auto b = tup(3);
    log_err b._0;
    b
  };

  log_err a._0;
  assert a._0 == 3;                                                                                                                             
}
brson added a commit that referenced this issue May 17, 2011
Blocks return in a copy of the result of their ending expression, not the
direct result of the ending expression, as that may be a local variable which
gets zeroed by drop_slot.
@brson brson closed this as completed May 17, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
add support for s390x

tested by running libc-test on real s390x hardware.

r? @alexcrichton
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Warning about UB being not being complete
calebzulawski added a commit to calebzulawski/rust that referenced this issue Nov 19, 2023
antoyo added a commit to antoyo/rust that referenced this issue Nov 19, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Vector Stubbing for the Rust Standard Library

* This PR includes stub implementations for the Vector module for the Standard Library.
* It includes 3 abstractions - RMCVec, CVec and NobackVec.
* It also includes an experimental CHashSet implementation.

Co-authored-by: Chinmay <chindesh@amazon.com>
Co-authored-by: Daniel Schwartz-Narbonne <danielsn@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant