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.
This commit is contained in:
parent
7b613ed8d2
commit
072bf482c9
1 changed files with 4 additions and 4 deletions
|
@ -207,17 +207,17 @@ pub fn diagnostics_registry() -> Registry {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This is the primary entry point for rustc.
|
/// This is the primary entry point for rustc.
|
||||||
pub struct RunCompiler<'a, 'b> {
|
pub struct RunCompiler<'a> {
|
||||||
at_args: &'a [String],
|
at_args: &'a [String],
|
||||||
callbacks: &'b mut (dyn Callbacks + Send),
|
callbacks: &'a mut (dyn Callbacks + Send),
|
||||||
file_loader: Option<Box<dyn FileLoader + Send + Sync>>,
|
file_loader: Option<Box<dyn FileLoader + Send + Sync>>,
|
||||||
make_codegen_backend:
|
make_codegen_backend:
|
||||||
Option<Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>>,
|
Option<Box<dyn FnOnce(&config::Options) -> Box<dyn CodegenBackend> + Send>>,
|
||||||
using_internal_features: Arc<std::sync::atomic::AtomicBool>,
|
using_internal_features: Arc<std::sync::atomic::AtomicBool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'b> RunCompiler<'a, 'b> {
|
impl<'a> RunCompiler<'a> {
|
||||||
pub fn new(at_args: &'a [String], callbacks: &'b mut (dyn Callbacks + Send)) -> Self {
|
pub fn new(at_args: &'a [String], callbacks: &'a mut (dyn Callbacks + Send)) -> Self {
|
||||||
Self {
|
Self {
|
||||||
at_args,
|
at_args,
|
||||||
callbacks,
|
callbacks,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue