diff --git a/llvm-plugin/src/analysis.rs b/llvm-plugin/src/analysis.rs
index 60d5b8c..1521104 100644
--- a/llvm-plugin/src/analysis.rs
+++ b/llvm-plugin/src/analysis.rs
@@ -33,7 +33,7 @@ impl FunctionAnalysisManager {
///
/// Panics if the given analysis wasn't registered, or if this function was
/// called within the given analysis itself.
- pub fn get_result<'a, A>(&self, function: &FunctionValue<'a>) -> &A::Result
+ pub fn get_result(&self, function: &FunctionValue<'_>) -> &A::Result
where
A: crate::LlvmFunctionAnalysis,
{
@@ -61,7 +61,7 @@ impl FunctionAnalysisManager {
///
/// Panics if the given analysis wasn't registered, or if this function was
/// called within the given analysis itself.
- pub fn get_cached_result<'a, A>(&self, function: &FunctionValue<'a>) -> Option<&A::Result>
+ pub fn get_cached_result(&self, function: &FunctionValue<'_>) -> Option<&A::Result>
where
A: crate::LlvmFunctionAnalysis,
{
@@ -171,7 +171,7 @@ impl ModuleAnalysisManager {
///
/// Panics if the given analysis wasn't registered, or if this function was
/// called within the given analysis itself.
- pub fn get_result<'a, A>(&self, module: &Module<'a>) -> &A::Result
+ pub fn get_result(&self, module: &Module<'_>) -> &A::Result
where
A: crate::LlvmModuleAnalysis,
{
@@ -198,7 +198,7 @@ impl ModuleAnalysisManager {
///
/// Panics if the given analysis wasn't registered, or if this function was
/// called within the given analysis itself.
- pub fn get_cached_result<'a, A>(&self, module: &Module<'a>) -> Option<&A::Result>
+ pub fn get_cached_result(&self, module: &Module<'_>) -> Option<&A::Result>
where
A: crate::LlvmModuleAnalysis,
{
@@ -219,9 +219,9 @@ impl ModuleAnalysisManager {
/// Returns a [FunctionAnalysisManagerProxy], which is essentially an interface
/// allowing management of analyses at the function level.
- pub fn get_function_analysis_manager_proxy<'a>(
+ pub fn get_function_analysis_manager_proxy(
&self,
- module: &Module<'a>,
+ module: &Module<'_>,
) -> FunctionAnalysisManagerProxy {
let proxy = crate::get_function_analysis_manager_module_proxy(
self.inner,
diff --git a/llvm-plugin/src/lib.rs b/llvm-plugin/src/lib.rs
index a934561..4dd5a4d 100644
--- a/llvm-plugin/src/lib.rs
+++ b/llvm-plugin/src/lib.rs
@@ -151,9 +151,9 @@ pub trait LlvmModulePass {
/// If this function makes modifications on the given module IR, it
/// should return `PreservedAnalyses::None` to indicate to the
/// pass manager that all analyses are now invalidated.
- fn run_pass<'a>(
+ fn run_pass(
&self,
- module: &mut Module<'a>,
+ module: &mut Module<'_>,
manager: &ModuleAnalysisManager,
) -> PreservedAnalyses;
}
@@ -170,9 +170,9 @@ pub trait LlvmFunctionPass {
/// If this function makes modifications on the given function IR, it
/// should return `PreservedAnalyses::None` to indicate to the
/// pass manager that all analyses are now invalidated.
- fn run_pass<'a>(
+ fn run_pass(
&self,
- function: &mut FunctionValue<'a>,
+ function: &mut FunctionValue<'_>,
manager: &FunctionAnalysisManager,
) -> PreservedAnalyses;
}
@@ -194,11 +194,7 @@ pub trait LlvmModuleAnalysis {
/// The returned result will be moved into a [Box](`std::boxed::Box`)
/// before being given to the pass manager. This one will then add it to
/// its internal cache, to avoid unnecessary calls to this entrypoint.
- fn run_analysis<'a>(
- &self,
- module: &Module<'a>,
- manager: &ModuleAnalysisManager,
- ) -> Self::Result;
+ fn run_analysis(&self, module: &Module<'_>, manager: &ModuleAnalysisManager) -> Self::Result;
/// Identifier for the analysis type.
///
@@ -257,9 +253,9 @@ pub trait LlvmFunctionAnalysis {
/// The returned result will be moved into a [Box](`std::boxed::Box`)
/// before being given to the pass manager. This one will then add it to
/// its internal cache, to avoid unnecessary calls to this entrypoint.
- fn run_analysis<'a>(
+ fn run_analysis(
&self,
- module: &FunctionValue<'a>,
+ module: &FunctionValue<'_>,
manager: &FunctionAnalysisManager,
) -> Self::Result;