Skip to content

Commit 072bf48

Browse files
committed
Remove unnecessary lifetime from RunCompiler.
This does change the external interface, but not in a way that will cause any breakage because external users don't mention the lifetimes.
1 parent 7b613ed commit 072bf48

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+4
-4
lines changed

compiler/rustc_driver_impl/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,17 @@ pub fn diagnostics_registry() -> Registry {
207207
}
208208

209209
/// This is the primary entry point for rustc.
210-
pub struct RunCompiler<'a, 'b> {
210+
pub struct RunCompiler<'a> {
211211
at_args: &'a [String],
212-
callbacks: &'b mut (dyn Callbacks + Send),
212+
callbacks: &'a mut (dyn Callbacks + Send),
213213
file_loader: Option<Box<dyn FileLoader + Send + Sync>>,
214214
make_codegen_backend:
215215
Option<Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>>,
216216
using_internal_features: Arc<std::sync::atomic::AtomicBool>,
217217
}
218218

219-
impl<'a, 'b> RunCompiler<'a, 'b> {
220-
pub fn new(at_args: &'a [String], callbacks: &'b mut (dyn Callbacks + Send)) -> Self {
219+
impl<'a> RunCompiler<'a> {
220+
pub fn new(at_args: &'a [String], callbacks: &'a mut (dyn Callbacks + Send)) -> Self {
221221
Self {
222222
at_args,
223223
callbacks,

0 commit comments

Comments
 (0)