Remove last traces of auth keyword
The reference now has an empty hole where the auth keyword used to be. Changing the keyword table seems to require manually sorting the keywords and putting them back into some kind of arcane interleaved order. I'll open an issue to actually fix this. Closes #1211
This commit is contained in:
parent
93e8783496
commit
a8dd52ed36
@ -636,7 +636,7 @@ The keywords are:
|
||||
@tab @code{if}
|
||||
@tab @code{pure}
|
||||
@tab @code{uint}
|
||||
@item @code{auth}
|
||||
@item @code{}
|
||||
@tab @code{export}
|
||||
@tab @code{import}
|
||||
@tab @code{resource}
|
||||
|
@ -127,10 +127,6 @@ mod util {
|
||||
mod filesearch;
|
||||
}
|
||||
|
||||
auth middle::metadata = unsafe;
|
||||
auth middle::trans = unsafe;
|
||||
auth lib::llvm = unsafe;
|
||||
|
||||
mod lib {
|
||||
mod llvm;
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ tag crate_directive_ {
|
||||
cdir_dir_mod(ident, option::t<filename>, [@crate_directive], [attribute]);
|
||||
cdir_view_item(@view_item);
|
||||
cdir_syntax(path);
|
||||
cdir_auth(path, _auth);
|
||||
}
|
||||
|
||||
type crate_directive = spanned<crate_directive_>;
|
||||
@ -101,8 +100,6 @@ tag mutability { mut; imm; maybe_mut; }
|
||||
|
||||
tag kind { kind_sendable; kind_copyable; kind_noncopyable; }
|
||||
|
||||
tag _auth { auth_unsafe; }
|
||||
|
||||
tag proto_sugar {
|
||||
sugar_normal;
|
||||
sugar_sexy;
|
||||
|
@ -168,7 +168,6 @@ fn noop_fold_crate_directive(cd: crate_directive_, fld: ast_fold) ->
|
||||
}
|
||||
cdir_view_item(vi) { cdir_view_item(fld.fold_view_item(vi)) }
|
||||
cdir_syntax(_) { cd }
|
||||
cdir_auth(_, _) { cd }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -133,7 +133,6 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: str,
|
||||
}
|
||||
ast::cdir_view_item(vi) { view_items += [vi]; }
|
||||
ast::cdir_syntax(pth) { }
|
||||
ast::cdir_auth(pth, eff) { }
|
||||
}
|
||||
}
|
||||
//
|
||||
|
@ -2112,12 +2112,6 @@ fn parse_item_tag(p: parser, attrs: [ast::attribute]) -> @ast::item {
|
||||
ret mk_item(p, lo, hi, id, ast::item_tag(variants, ty_params), attrs);
|
||||
}
|
||||
|
||||
fn parse_auth(p: parser) -> ast::_auth {
|
||||
if eat_word(p, "unsafe") {
|
||||
ret ast::auth_unsafe;
|
||||
} else { unexpected(p, p.peek()); }
|
||||
}
|
||||
|
||||
fn parse_fn_item_proto(_p: parser) -> ast::proto {
|
||||
ast::proto_bare
|
||||
}
|
||||
@ -2529,13 +2523,6 @@ fn parse_crate_directive(p: parser, first_outer_attr: [ast::attribute]) ->
|
||||
}
|
||||
t { unexpected(p, t); }
|
||||
}
|
||||
} else if eat_word(p, "auth") {
|
||||
let n = parse_path(p);
|
||||
expect(p, token::EQ);
|
||||
let a = parse_auth(p);
|
||||
let hi = p.get_hi_pos();
|
||||
expect(p, token::SEMI);
|
||||
ret spanned(lo, hi, ast::cdir_auth(n, a));
|
||||
} else if is_view_item(p) {
|
||||
let vi = parse_view_item(p);
|
||||
ret spanned(lo, vi.span.hi, ast::cdir_view_item(vi));
|
||||
|
@ -64,7 +64,6 @@ fn visit_crate_directive<E>(cd: @crate_directive, e: E, v: vt<E>) {
|
||||
}
|
||||
cdir_view_item(vi) { v.visit_view_item(vi, e, v); }
|
||||
cdir_syntax(_) { }
|
||||
cdir_auth(_, _) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,25 +114,6 @@ mod os = "linux_os.rs";
|
||||
#[cfg(target_os = "linux")]
|
||||
mod os_fs = "posix_fs.rs";
|
||||
|
||||
|
||||
// FIXME: This doesn't do anything.
|
||||
// Authorize various rule-bendings.
|
||||
|
||||
auth io = unsafe;
|
||||
auth fs = unsafe;
|
||||
auth os_fs = unsafe;
|
||||
auth run = unsafe;
|
||||
auth str = unsafe;
|
||||
auth vec = unsafe;
|
||||
auth task = unsafe;
|
||||
|
||||
auth dbg = unsafe;
|
||||
|
||||
auth uint::next_power_of_two = unsafe;
|
||||
auth map::mk_hashmap = unsafe;
|
||||
auth rand::mk_rng = unsafe;
|
||||
|
||||
|
||||
// Local Variables:
|
||||
// mode: rust;
|
||||
// fill-column: 78;
|
||||
|
Loading…
Reference in New Issue
Block a user