Skip to content

Commit f04016b

Browse files
committed
[]WIP] make CI pass by supressing warnings temporarily
1 parent 1a928e6 commit f04016b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

compiler/rustc_ast_lowering/src/delegation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,15 @@ impl<'hir> LoweringContext<'hir> {
343343
}
344344
}
345345

346+
#[allow(unused)] // TODO
346347
struct SelfResolver<'a> {
347348
resolver: &'a mut ResolverAstLowering,
348349
path_id: NodeId,
349350
self_param_id: NodeId,
350351
}
351352

352353
impl<'a> SelfResolver<'a> {
354+
#[allow(unused)]
353355
fn try_replace_id(&mut self, id: NodeId) {
354356
if let Some(res) = self.resolver.partial_res_map.get(&id)
355357
&& let Some(Res::Local(sig_id)) = res.full_res()

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ impl<'hir> LoweringContext<'hir> {
16911691
let (old_def_id, missing_kind) = match res {
16921692
LifetimeRes::Param { param: old_def_id, binder: _ } => (old_def_id, None),
16931693

1694-
LifetimeRes::Fresh { id, kind, param, .. } => {
1694+
LifetimeRes::Fresh { id, kind, .. } => {
16951695
debug_assert_eq!(lifetime.ident.name, kw::UnderscoreLifetime);
16961696
(self.tcx.fresh_lifetime_def_id(id), Some(kind))
16971697
}

0 commit comments

Comments
 (0)