Skip to content

Commit c099ed3

Browse files
committed
Auto merge of #121635 - 823984418:remove_archive_builder_lifetime_a, r=nnethercote
Remove useless lifetime of ArchiveBuilder `trait ArchiveBuilder<'a>` has a seemingly useless lifetime a, so I remove it. If this is intentional, please reject this PR. ```rust pub trait ArchiveBuilder<'a> { fn add_file(&mut self, path: &Path); fn add_archive( &mut self, archive: &Path, skip: Box<dyn FnMut(&str) -> bool + 'static>, ) -> io::Result<()>; fn build(self: Box<Self>, output: &Path) -> bool; } ```
2 parents 15d98cd + c460cf1 commit c099ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/archive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_session::Session;
88
pub(crate) struct ArArchiveBuilderBuilder;
99

1010
impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
11-
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder<'a> + 'a> {
11+
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
1212
Box::new(ArArchiveBuilder::new(sess, get_native_object_symbols))
1313
}
1414

0 commit comments

Comments
 (0)