Remove Deref/DerefMut impl for Providers.
It's described as a "backwards compatibility hack to keep the diff small". Removing it requires only a modest amount of churn, and the resulting code is clearer without the invisible derefs.
This commit is contained in:
parent
fe0facf0f6
commit
c9a063ced9
1 changed files with 2 additions and 1 deletions
|
|
@ -286,7 +286,8 @@ impl CodegenBackend for GccCodegenBackend {
|
|||
}
|
||||
|
||||
fn provide(&self, providers: &mut Providers) {
|
||||
providers.global_backend_features = |tcx, ()| gcc_util::global_gcc_features(tcx.sess)
|
||||
providers.queries.global_backend_features =
|
||||
|tcx, ()| gcc_util::global_gcc_features(tcx.sess)
|
||||
}
|
||||
|
||||
fn codegen_crate(&self, tcx: TyCtxt<'_>) -> Box<dyn Any> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue