about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-06-03 15:21:33 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-03 15:21:33 +1000
commit04391045d0ecfad794481b27a49032c48d2ff2ca (patch)
tree6c25f24d1952f82fb18a24269cf4128b0c7669be /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent99e7c15e81385b38a8186b51edc4577d5d7b5bdd (diff)
downloadrust-04391045d0ecfad794481b27a49032c48d2ff2ca.tar.gz
rust-04391045d0ecfad794481b27a49032c48d2ff2ca.zip
Remove `Path::is_ident`.
It checks that a path has a single segment that matches the given
symbol, and that there are zero generic arguments. It has a single use.

We also have `impl PartialEq<Symbol> for Path` which does exactly the
same thing *except* it doesn't check for zero generic arguments, which
seems like an oversight. It has numerous uses.

This commit removes `Path::is_ident`, adds a test for zero generic
arguments to `PartialEq<Symbol> for Path`, and changes the single use of
`is_ident` to instead use `==`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions