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

Unique boxes #409

Closed
graydon opened this issue May 26, 2011 · 3 comments
Closed

Unique boxes #409

graydon opened this issue May 26, 2011 · 3 comments
Assignees
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-typesystem Area: The type system

Comments

@graydon
Copy link
Contributor

graydon commented May 26, 2011

Add a ~ box type (steal unary-bitwise-not, it's rare enough to live in a library or use ! as a synonym or something).

This will live in the tree kind, not permit shallow copies, only deep copies and move semantics.

@ghost ghost assigned pcwalton Jun 2, 2011
@pcwalton
Copy link
Contributor

Simple uses of ~ are working now.

@ghost ghost assigned brson Sep 20, 2011
brson added a commit that referenced this issue Sep 21, 2011
brson added a commit that referenced this issue Sep 21, 2011
brson added a commit that referenced this issue Sep 21, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 22, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
@brson
Copy link
Contributor

brson commented Sep 23, 2011

Just some notes about things that need to be tested:

  • patterns
  • local destructuring
  • no copies in nested block expressions
  • sending
  • containing tuples
  • swap
  • unique boxes containing pinned types can't be copied

brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 23, 2011
brson added a commit that referenced this issue Sep 24, 2011
brson added a commit that referenced this issue Sep 24, 2011
brson added a commit that referenced this issue Sep 24, 2011
Seems to be more correctish...

Issue #409
brson added a commit that referenced this issue Sep 24, 2011
…e-fail

This test tries to swap unique boxes containing resources, which is not
allowed.

Issue #409
brson added a commit that referenced this issue Sep 25, 2011
brson added a commit that referenced this issue Sep 25, 2011
brson added a commit that referenced this issue Sep 26, 2011
brson added a commit that referenced this issue Sep 27, 2011
@brson
Copy link
Contributor

brson commented Sep 29, 2011

Jesse hasn't fuzzed us any new bugs for this issue in several days so I think we're pretty solid here.

@brson brson closed this as completed Sep 29, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…richton

Use correct type for c_ulong and c_long on 32-bit netbsdlike
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
Bumps [gimli](https://github.com/gimli-rs/gimli) from `f30aeaa` to `5763791`.
- [Release notes](https://github.com/gimli-rs/gimli/releases)
- [Commits](gimli-rs/gimli@f30aeaa...5763791)

Signed-off-by: dependabot[bot] <support@dependabot.com>
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Correct typetree lookup routine

* Additional fixes

* Improve TypeAnalysis performance

* error print
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Add support for manually passing options to examples.

* Ignore files with `.props` extension.

* Use `WalkDir` instead of manually reading sub-directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

3 participants