about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-04-15 16:56:16 +0100
committerGitHub <noreply@github.com>2024-04-15 16:56:16 +0100
commitb1d1e081beb8b4ab02664c3e64f25513740d07e3 (patch)
treefbf7c16af205cc46d3f152df892ce68c58b20e5b /compiler/rustc_pattern_analysis/src
parent18e6bb2851d02aa73f89d9fcac9cd89f8c24357e (diff)
parentec3ac1dcd6f8c4cdd648246aa2169cf7ea05027f (diff)
downloadrust-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