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

Resource types #411

Closed
graydon opened this issue May 26, 2011 · 1 comment
Closed

Resource types #411

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

Comments

@graydon
Copy link
Contributor

graydon commented May 26, 2011

Non-sendable, non-copyable nominal items spelled "res(...) { ... }" that hold a value-tuple and associate a destructor. Remove dtors from objs. Purpose is to make the feature orthogonal (and introduce the kind of types that cannot be copied, to be reused in the lambda blocks, issue #6).

@ghost ghost assigned graydon and marijnh Jun 21, 2011
@marijnh
Copy link
Contributor

marijnh commented Jun 28, 2011

This is done now (per 9561def ). The syntax changed to

resource foo(int i) { free_resouce(i); }

@marijnh marijnh closed this as completed Jun 28, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…excrichton

Add `pthread_mutex_timedlock`
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
…target_feature (rust-lang#432)

* fix build after stabilization of cfg_target_feature and target_feature

* fix doc tests

* fix spurious unused_attributes warning

* fix more unused attribute warnings

* More unnecessary target features

* Remove no longer needed trait imports

* Remove fixed upstream workarounds

* Fix parsing the #[assert_instr] macro

Following upstream proc_macro changes

* Fix form and parsing of #[simd_test]

* Don't use Cargo features for testing modes

Instead use RUSTFLAGS with `--cfg`. This'll help us be compatible with the
latest Cargo where a tweak to workspaces and features made the previous
invocations we had invalid.

* Don't thread RUSTFLAGS through docker

* Re-gate on x86 verification

Closes rust-lang#411
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* More non-strict type handling

* Merge global constants

* Handle NVVM pow
GuillaumeGomez pushed a commit to GuillaumeGomez/rust that referenced this issue Feb 21, 2024
Fix the destination path of the sysroot copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: frontend (errors, parsing and HIR) A-typesystem Area: The type system
Projects
None yet
Development

No branches or pull requests

2 participants