diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-04-15 16:56:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 16:56:16 +0100 |
| commit | b1d1e081beb8b4ab02664c3e64f25513740d07e3 (patch) | |
| tree | fbf7c16af205cc46d3f152df892ce68c58b20e5b /compiler/rustc_pattern_analysis/src | |
| parent | 18e6bb2851d02aa73f89d9fcac9cd89f8c24357e (diff) | |
| parent | ec3ac1dcd6f8c4cdd648246aa2169cf7ea05027f (diff) | |
| download | rust-b1d1e081beb8b4ab02664c3e64f25513740d07e3.tar.gz rust-b1d1e081beb8b4ab02664c3e64f25513740d07e3.zip | |
Rollup merge of #123919 - RalfJung:discriminant, r=compiler-errors
builtin-derive: tag → discriminant As far as I can tell, all of this operates on the discriminant, not the tag. After all, with something like `Option<&T>`, the "tag" of the `Some` variant is basically just the reference value, which is never what you want to compare when figuring out which variant the enum is in. See [here](https://rustc-dev-guide.rust-lang.org/appendix/glossary.html) for an explanation of the difference between tag and discriminant.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
