Rollup merge of #99729 - cjgillot:rm-unused-tuple, r=michaelwoerister
Remove unused tuple fields Found by https://github.com/rust-lang/rust/pull/95977
This commit is contained in:
commit
ddb6a46316
6 changed files with 27 additions and 31 deletions
|
@ -437,7 +437,7 @@ enum ModuleKind {
|
|||
/// f(); // Resolves to (1)
|
||||
/// }
|
||||
/// ```
|
||||
Block(NodeId),
|
||||
Block,
|
||||
/// Any module with a name.
|
||||
///
|
||||
/// This could be:
|
||||
|
@ -454,7 +454,7 @@ impl ModuleKind {
|
|||
/// Get name of the module.
|
||||
pub fn name(&self) -> Option<Symbol> {
|
||||
match self {
|
||||
ModuleKind::Block(..) => None,
|
||||
ModuleKind::Block => None,
|
||||
ModuleKind::Def(.., name) => Some(*name),
|
||||
}
|
||||
}
|
||||
|
@ -530,7 +530,7 @@ impl<'a> ModuleData<'a> {
|
|||
) -> Self {
|
||||
let is_foreign = match kind {
|
||||
ModuleKind::Def(_, def_id, _) => !def_id.is_local(),
|
||||
ModuleKind::Block(_) => false,
|
||||
ModuleKind::Block => false,
|
||||
};
|
||||
ModuleData {
|
||||
parent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue