about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-03 21:53:38 +0200
committerGitHub <noreply@github.com>2025-06-03 21:53:38 +0200
commit96531418f8ccbc703603535c5825e1bf25bd6d5b (patch)
tree2403746d729bdfebc2bbcc7f378065b5d466cada /compiler/rustc_const_eval/src
parentb7150d4e63ae497224fcfa8ff8a962941bf10628 (diff)
parent04391045d0ecfad794481b27a49032c48d2ff2ca (diff)
downloadrust-96531418f8ccbc703603535c5825e1bf25bd6d5b.tar.gz
rust-96531418f8ccbc703603535c5825e1bf25bd6d5b.zip
Rollup merge of #141945 - nnethercote:rm-Path-is_ident, r=compiler-errors
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 `==`.

r? `@wesleywiser`
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions