diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-05 02:01:32 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-10-07 10:19:04 +0200 |
| commit | 604bc876e03a4169a1fb42408d778c65ab39cec2 (patch) | |
| tree | 7b40a8a99f4860d7a5582996b7b14b88272c2f37 /compiler/rustc_passes/src | |
| parent | 236689d6eb241e92bea7449c07ba55783926391f (diff) | |
| download | rust-604bc876e03a4169a1fb42408d778c65ab39cec2.tar.gz rust-604bc876e03a4169a1fb42408d778c65ab39cec2.zip | |
implement nits
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/hir_id_validator.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/hir_id_validator.rs b/compiler/rustc_passes/src/hir_id_validator.rs index 7d4bafc1089..6d1a5fcc10b 100644 --- a/compiler/rustc_passes/src/hir_id_validator.rs +++ b/compiler/rustc_passes/src/hir_id_validator.rs @@ -170,7 +170,8 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirIdValidator<'a, 'hir> { .. } = param.kind { - // Do nothing because bodging is fun. + // Synthetic impl trait parameters are owned by the node of the desugared type. + // This means it is correct for them to have a different owner. } else { intravisit::walk_generic_param(self, param); } |
