diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-07-05 23:00:14 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-07-05 23:00:14 +0300 |
| commit | f07100afc8650101ac924d728521e1a5d0ce9080 (patch) | |
| tree | 82e8f3dfe9a9e76aa68e70af7f33dea56bdea743 /src/librustc_codegen_llvm | |
| parent | f25811e34bf89c3dde760d826ad4662c245be202 (diff) | |
| download | rust-f07100afc8650101ac924d728521e1a5d0ce9080.tar.gz rust-f07100afc8650101ac924d728521e1a5d0ce9080.zip | |
Use for<'tcx> fn pointers in Providers, instead of having Providers<'tcx>.
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/attributes.rs | 4 | ||||
| -rw-r--r-- | src/librustc_codegen_llvm/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/attributes.rs b/src/librustc_codegen_llvm/attributes.rs index 6234ade8a16..c53a64664a6 100644 --- a/src/librustc_codegen_llvm/attributes.rs +++ b/src/librustc_codegen_llvm/attributes.rs @@ -342,7 +342,7 @@ pub fn from_fn_attrs(cx: &CodegenCx<'ll, 'tcx>, llfn: &'ll Value, instance: ty:: } } -pub fn provide(providers: &mut Providers<'_>) { +pub fn provide(providers: &mut Providers) { providers.target_features_whitelist = |tcx, cnum| { assert_eq!(cnum, LOCAL_CRATE); if tcx.sess.opts.actually_rustdoc { @@ -360,7 +360,7 @@ pub fn provide(providers: &mut Providers<'_>) { provide_extern(providers); } -pub fn provide_extern(providers: &mut Providers<'_>) { +pub fn provide_extern(providers: &mut Providers) { providers.wasm_import_module_map = |tcx, cnum| { // Build up a map from DefId to a `NativeLib` structure, where // `NativeLib` internally contains information about diff --git a/src/librustc_codegen_llvm/lib.rs b/src/librustc_codegen_llvm/lib.rs index 565968f9952..67d4b2642c0 100644 --- a/src/librustc_codegen_llvm/lib.rs +++ b/src/librustc_codegen_llvm/lib.rs @@ -241,11 +241,11 @@ impl CodegenBackend for LlvmCodegenBackend { Box::new(metadata::LlvmMetadataLoader) } - fn provide(&self, providers: &mut ty::query::Providers<'_>) { + fn provide(&self, providers: &mut ty::query::Providers) { attributes::provide(providers); } - fn provide_extern(&self, providers: &mut ty::query::Providers<'_>) { + fn provide_extern(&self, providers: &mut ty::query::Providers) { attributes::provide_extern(providers); } |
