Skip to content

Use lit span when suggesting suffix lit cast - #138484

Merged
bors merged 1 commit into
rust-lang:masterfrom
xizheyin:issue-138392
Mar 16, 2025
Merged

Use lit span when suggesting suffix lit cast#138484
bors merged 1 commit into
rust-lang:masterfrom
xizheyin:issue-138392

Conversation

@xizheyin

Copy link
Copy Markdown
Member

Fixes#138392

@rustbot

Copy link
Copy Markdown
Collaborator

r? @wesleywiser

rustbot has assigned @wesleywiser.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 14, 2025
Comment threadtests/ui/cast/cast_lit_suffix-issue-138392.rs
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
@compiler-errors

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Mar 15, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit bc6047a has been approved by compiler-errors

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 15, 2025
@jieyouxujieyouxu mentioned this pull request Mar 16, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 16, 2025
Rollup of 16 pull requests
Successful merges:
- rust-lang#133055 (Expand `CloneToUninit` documentation.)
- rust-lang#137147 (Add exclude to config.toml)
- rust-lang#137864 (Don't drop `Rvalue::WrapUnsafeBinder` during GVN)
- rust-lang#137890 (doc: clarify that consume can be called after BufReader::peek)
- rust-lang#137956 (Add RTN support to rustdoc)
- rust-lang#137968 (Properly escape regexes in Python scripts)
- rust-lang#138082 (Remove `#[cfg(not(test))]` gates in `core`)
- rust-lang#138275 (expose `is_s390x_feature_detected!` from `std::arch`)
- rust-lang#138303 (Fix Ptr inconsistency in {Rc,Arc})
- rust-lang#138309 (Add missing doc for intrinsic (Fix PR135334))
- rust-lang#138323 (Expand and organize `offset_of!` documentation.)
- rust-lang#138329 (debug-assert that the size_hint is well-formed in `collect`)
- rust-lang#138465 (linkchecker: bump html5ever)
- rust-lang#138471 (Clean up some tests in tests/ui)
- rust-lang#138472 (Add codegen test for rust-lang#129795)
- rust-lang#138484 (Use lit span when suggesting suffix lit cast)
r? `@ghost`
`@rustbot` modify labels: rollup
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 16, 2025
Rollup merge of rust-lang#138484 - xizheyin:issue-138392, r=compiler-errors
Use lit span when suggesting suffix lit cast
Fixesrust-lang#138392
@bors
bors merged commit f4372f5 into rust-lang:masterMar 16, 2025
@rustbotrustbot added this to the 1.87.0 milestone Mar 16, 2025
@xizheyin
xizheyin deleted the issue-138392 branch March 24, 2025 06:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integer literal type suggestions do not account for parentheses

6 participants

@xizheyin@rustbot@compiler-errors@bors@jieyouxu@wesleywiser