about summary refs log tree commit diff
path: root/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-24 11:56:44 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-05-09 13:57:49 +1000
commit0984db553ddd25c0d16ef68b91bd731825309ac5 (patch)
tree10a2604358948af0479da4124a1387739a3c3e49 /tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
parent667247db71ea18c4130dd018d060e7f09d589490 (diff)
downloadrust-0984db553ddd25c0d16ef68b91bd731825309ac5.tar.gz
rust-0984db553ddd25c0d16ef68b91bd731825309ac5.zip
Remove `Ident::empty`.
All uses have been removed. And it's nonsensical: an identifier by
definition has at least one char.

The commits adds an is-non-empty assertion to `Ident::new` to enforce
this, and converts some `Ident` constructions to use `Ident::new`.
Adding the assertion requires making `Ident::new` and
`Ident::with_dummy_span` non-const, which is no great loss.

The commit amends a couple of places that do path splitting to ensure no
empty identifiers are created.
Diffstat (limited to 'tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff')
0 files changed, 0 insertions, 0 deletions