Constness -> enum Const { Yes(Span), No }
Same idea for `Unsafety` & use new span for better diagnostics.
This commit is contained in:
parent
2e6eaceede
commit
e839b2ec84
40 changed files with 238 additions and 212 deletions
|
|
@ -203,7 +203,7 @@ pub struct Impl<'hir> {
|
|||
pub unsafety: hir::Unsafety,
|
||||
pub polarity: hir::ImplPolarity,
|
||||
pub defaultness: hir::Defaultness,
|
||||
pub constness: ast::Constness,
|
||||
pub constness: hir::Constness,
|
||||
pub generics: &'hir hir::Generics<'hir>,
|
||||
pub trait_: &'hir Option<hir::TraitRef<'hir>>,
|
||||
pub for_: &'hir hir::Ty<'hir>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue