Implement the unsafe-fields RFC.
Co-Authored-By: Jacob Pratt <jacob@jhpratt.dev>
This commit is contained in:
parent
75703c1a78
commit
9022bb2d6f
38 changed files with 793 additions and 85 deletions
|
@ -2,7 +2,7 @@ use rustc_ast::mut_visit::*;
|
|||
use rustc_ast::ptr::P;
|
||||
use rustc_ast::token::Delimiter;
|
||||
use rustc_ast::visit::AssocCtxt;
|
||||
use rustc_ast::{self as ast};
|
||||
use rustc_ast::{self as ast, Safety};
|
||||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_span::DUMMY_SP;
|
||||
use rustc_span::symbol::Ident;
|
||||
|
@ -173,6 +173,7 @@ pub(crate) fn placeholder(
|
|||
ty: ty(),
|
||||
vis,
|
||||
is_placeholder: true,
|
||||
safety: Safety::Default,
|
||||
}]),
|
||||
AstFragmentKind::Variants => AstFragment::Variants(smallvec![ast::Variant {
|
||||
attrs: Default::default(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue