Rename FnStyle trait to Unsafety.
This commit is contained in:
parent
52f7a4a351
commit
092d04a40a
41 changed files with 254 additions and 273 deletions
|
@ -123,7 +123,7 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
|
|||
|
||||
if is_test_fn(&self.cx, &*i) || is_bench_fn(&self.cx, &*i) {
|
||||
match i.node {
|
||||
ast::ItemFn(_, ast::UnsafeFn, _, _, _) => {
|
||||
ast::ItemFn(_, ast::Unsafety::Unsafe, _, _, _) => {
|
||||
let diag = self.cx.span_diagnostic;
|
||||
diag.span_fatal(i.span,
|
||||
"unsafe functions cannot be used for \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue