diff options
| author | Ellen <supbscripter@gmail.com> | 2022-02-09 11:03:27 +0000 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-02-12 11:23:53 +0000 |
| commit | e81e09a24e5e1862969aef9ba3a9e71519259eb8 (patch) | |
| tree | cb1b15a7c6cb33b3540aa3a66b663216343443ca /compiler/rustc_passes/src | |
| parent | 9cdefd763b910ffd1d42233a8c752ab5fd84ca4d (diff) | |
| download | rust-e81e09a24e5e1862969aef9ba3a9e71519259eb8.tar.gz rust-e81e09a24e5e1862969aef9ba3a9e71519259eb8.zip | |
change to a struct variant
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/dead.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs index dc3ce1afa33..e52fbc8ab92 100644 --- a/compiler/rustc_passes/src/dead.rs +++ b/compiler/rustc_passes/src/dead.rs @@ -104,7 +104,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> { self.check_def_id(variant_id); } } - Res::SelfTy(t, i) => { + Res::SelfTy { trait_: t, alias_to: i } => { if let Some(t) = t { self.check_def_id(t); } |
