about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-07 07:24:15 +0000
committerbors <bors@rust-lang.org>2024-05-07 07:24:15 +0000
commit24ef42aafc03cf1bf4298a0fec1ca313979169d7 (patch)
tree1ee03cc12c259fd097947d5fdce08650a5bff611 /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parentc50b357efe81c4632ce3875496029fc596be0e8b (diff)
parent88a0df9d822be905a5984369cd5cb94d91f2f9e6 (diff)
downloadrust-24ef42aafc03cf1bf4298a0fec1ca313979169d7.tar.gz
rust-24ef42aafc03cf1bf4298a0fec1ca313979169d7.zip
Auto merge of #17192 - roife:fix-issue-17179, r=lnicola
Fix source_range for INT_NUMBER in completion

fix #17179.

Previously r-a use `TextRange::empty(self.position.offset)` as `source_range` for `INT_NUMBER`, so the `text_edit` would always be an insertion, which results in #17179.

This PR changed it by using `text_range` of `original_token` (same as `IDENT`).
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions