Auto merge of #60124 - petrochenkov:stanomut, r=eddyb
Remove mutability from `Def::Static` Querify `TyCtxt::is_static`. Use `Mutability` instead of bool in foreign statics in AST/HIR. cc https://github.com/rust-lang/rust/pull/60110 r? @eddyb
This commit is contained in:
commit
31a75a1728
34 changed files with 93 additions and 96 deletions
|
@ -7683,7 +7683,7 @@ impl<'a> Parser<'a> {
|
|||
/// Assumes that the `static` keyword is already parsed.
|
||||
fn parse_item_foreign_static(&mut self, vis: ast::Visibility, lo: Span, attrs: Vec<Attribute>)
|
||||
-> PResult<'a, ForeignItem> {
|
||||
let mutbl = self.eat_keyword(keywords::Mut);
|
||||
let mutbl = self.parse_mutability();
|
||||
let ident = self.parse_ident()?;
|
||||
self.expect(&token::Colon)?;
|
||||
let ty = self.parse_ty()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue