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

Rename #[no_drop_flag] to #[unsafe_no_drop_flag] #7433

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3904,7 +3904,7 @@ impl DtorKind {
pub fn ty_dtor(cx: ctxt, struct_id: def_id) -> DtorKind {
match cx.destructor_for_type.find(&struct_id) {
Some(&method_def_id) => {
let flag = !has_attr(cx, struct_id, "no_drop_flag");
let flag = !has_attr(cx, struct_id, "unsafe_no_drop_flag");

TraitDtor(method_def_id, flag)
}
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/unstable/atomics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct AtomicPtr<T> {
/**
* An owned atomic pointer. Ensures that only a single reference to the data is held at any time.
*/
#[no_drop_flag]
#[unsafe_no_drop_flag]
pub struct AtomicOption<T> {
priv p: *mut c_void
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/attr-no-drop-flag-size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use std::sys::size_of;

#[no_drop_flag]
#[unsafe_no_drop_flag]
struct Test<T> {
a: T
}
Expand Down