about summary refs log tree commit diff
path: root/compiler/rustc_borrowck
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-07-04 23:11:12 +0200
committerGitHub <noreply@github.com>2022-07-04 23:11:12 +0200
commitcb2d3bb198726c4c131782e7a78a14f82bab7b42 (patch)
tree53dbcc5b1d8c568140230e085b1ec7108d3f7452 /compiler/rustc_borrowck
parent9ad3ef13ac6b9a1c73f1129f0925740607a0961a (diff)
parent658b7f36525e7d6c915de45777b4fd5e7685ad17 (diff)
downloadrust-cb2d3bb198726c4c131782e7a78a14f82bab7b42.tar.gz
rust-cb2d3bb198726c4c131782e7a78a14f82bab7b42.zip
Rollup merge of #98878 - lcnr:more-rustc_pass_by_value, r=oli-obk
add more `rustc_pass_by_value`

r? ```@oli-obk``` cc #98766
Diffstat (limited to 'compiler/rustc_borrowck')
-rw-r--r--compiler/rustc_borrowck/src/constraint_generation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/constraint_generation.rs b/compiler/rustc_borrowck/src/constraint_generation.rs
index e4ffae38c33..d34c6d9dee5 100644
--- a/compiler/rustc_borrowck/src/constraint_generation.rs
+++ b/compiler/rustc_borrowck/src/constraint_generation.rs
@@ -149,7 +149,7 @@ impl<'cg, 'cx, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'cx, 'tcx> {
     fn visit_ascribe_user_ty(
         &mut self,
         _place: &Place<'tcx>,
-        _variance: &ty::Variance,
+        _variance: ty::Variance,
         _user_ty: &UserTypeProjection,
         _location: Location,
     ) {