Skip to content

Use move semantics for function and block returns #542

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

Closed
marijnh opened this issue Jun 21, 2011 · 1 comment
Closed

Use move semantics for function and block returns #542

marijnh opened this issue Jun 21, 2011 · 1 comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@marijnh
Copy link
Contributor

marijnh commented Jun 21, 2011

(Where block return is the thing that happens with semicolon-less last expressions.) Both guarantee that the returned value is no longer live after the return, so there doesn't seem to be a reason to copy.

@marijnh
Copy link
Contributor Author

marijnh commented Jul 7, 2011

Implemented in 3bdbf74

@marijnh marijnh closed this as completed Jul 7, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Add OXTABS and ONOEOT for BSD systems

According to all references I could find these are BSD extensions to POSIX and are also supported on OS X.
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 24, 2022
…=Manishearth

Lint enum-to-int casts with `cast_possible_truncation`

fixes: rust-lang#542

~~This will not lint casting a specific variant to an integer. That really should be a new lint as it's definitely a truncation (other than `isize`/`usize` values).~~

changelog: Lint enum-to-int casts with `cast_possible_truncation`
changelog: New lint `cast_enum_truncation`
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

1 participant