about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-06-14 10:35:29 +0200
committerGitHub <noreply@github.com>2022-06-14 10:35:29 +0200
commit9e5c5c57e97098b4d1e04a1215628ff6eb54986b (patch)
treef0834ff062f8f2a4425a24d5112c254fd455d20f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent4b1d510e0c5a9607ff5b1966b4d85659077ad7d8 (diff)
parent93e4b6ef06888085dc60d073ca9d66f2d7282112 (diff)
downloadrust-9e5c5c57e97098b4d1e04a1215628ff6eb54986b.tar.gz
rust-9e5c5c57e97098b4d1e04a1215628ff6eb54986b.zip
Rollup merge of #97935 - nnethercote:rename-ConstS-val-as-kind, r=lcnr
Rename the `ConstS::val` field as `kind`.

And likewise for the `Const::val` method.

Because its type is called `ConstKind`. Also `val` is a confusing name
because `ConstKind` is an enum with seven variants, one of which is
called `Value`. Also, this gives consistency with `TyS` and `PredicateS`
which have `kind` fields.

The commit also renames a few `Const` variables from `val` to `c`, to
avoid confusion with the `ConstKind::Value` variant.

r? `@BoxyUwU`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions