Skip to content

Do not ICE with a precision flag in formatting str and no format arguments - #66093

Merged
bors merged 1 commit into
rust-lang:masterfrom
estebank:fmt-ice
Nov 6, 2019
Merged

Do not ICE with a precision flag in formatting str and no format arguments#66093
bors merged 1 commit into
rust-lang:masterfrom
estebank:fmt-ice

Conversation

@estebank

Copy link
Copy Markdown
Contributor

Fix#66065.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 4, 2019
@estebankestebank added beta-nominated Nominated for backporting to the compiler in the beta channel. regression-from-stable-to-stable Performance or correctness regression from one stable version to another. stable-nominated Nominated for backporting to the compiler in the stable channel. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 4, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor

@rust-lang/compiler sorry for the wide scatter approach, but this is a tiny PR that would fix a stable ICE and would like to merge it and backport before 1.39 leaves the station (although I understand if declined).

@jonas-schievink

Copy link
Copy Markdown
Contributor

The 1.39 beta->stable promotion has already happened earlier today, so I'm not sure how likely this is to happen. cc @rust-lang/release

@estebank

Copy link
Copy Markdown
ContributorAuthor

@jonas-schievink fair. Does that mean that 1.40-beta has already been cut? In that case it can follow regular backporting to 1.40-beta later in the week/next week.

This is not a critical ICE, it just felt to me way too easy to trigger.

@jonas-schievink

Copy link
Copy Markdown
Contributor

AFAIK that will be done tomorrow (the master->beta promotion, that is)

@Mark-Simulacrum

Copy link
Copy Markdown
Member

1.39 has been fully cut, any backports targeting beta in the release week need to be quite significant impact (e.g., ICE -> error fixes almost certainly don't qualify IMO). 1.40 beta has not yet been cut (that will happen tomorrow).

Comment threadsrc/test/ui/issues/issue-66065.rs Outdated
@Centril

Copy link
Copy Markdown
Contributor

r? @Centril r=me with comment addressed.

@estebankestebank added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 5, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors r=Centril

@bors

bors commented Nov 5, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit bbd7f5c has been approved by Centril

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 5, 2019
@estebankestebank changed the title Do not ICE whith a precision flag in formatting str and no format argumentsDo not ICE with a precision flag in formatting str and no format argumentsNov 5, 2019
Centril added a commit to Centril/rust that referenced this pull request Nov 5, 2019
Do not ICE with a precision flag in formatting str and no format arguments
Fixrust-lang#66065.
@CentrilCentril mentioned this pull request Nov 5, 2019
Centril added a commit to Centril/rust that referenced this pull request Nov 6, 2019
Do not ICE with a precision flag in formatting str and no format arguments
Fixrust-lang#66065.
@CentrilCentril mentioned this pull request Nov 6, 2019
bors added a commit that referenced this pull request Nov 6, 2019
Rollup of 11 pull requests
Successful merges:
- #65892 (Remove `PartialEq` and `Eq` from the `SpecialDerives`.)
- #66014 (Show type parameter name and definition in type mismatch error messages )
- #66027 (Move has_panic_handler to query)
- #66054 (syntax: Avoid span arithmetic for delimiter tokens)
- #66068 (use silent emitter for rustdoc highlighting pass)
- #66081 (let caller of check_ptr_access_align control the error message)
- #66093 (Do not ICE with a precision flag in formatting str and no format arguments)
- #66098 (Detect `::` -> `:` typo when involving turbofish)
- #66101 (Tweak type mismatch caused by break on tail expr)
- #66106 (Fix typo in explanation of `E0080`)
- #66115 (rustc: remove "GlobalMetaData" dead code from hir::map::definitions.)
Failed merges:
r? @ghost
@bors
bors merged commit bbd7f5c into rust-lang:masterNov 6, 2019
@pnkfelix

Copy link
Copy Markdown
Contributor

Discussed in T-compiler meeting. beta-accepted, and stable-accepted (with understanding that this is not very high priority to fix and that release team is trusted to make the call with respect to when/whether to issue a point release).

@pnkfelixpnkfelix added beta-accepted Accepted for backporting to the compiler in the beta channel. stable-accepted Accepted for backporting to the compiler in the stable channel. labels Nov 7, 2019
@Mark-SimulacrumMark-Simulacrum mentioned this pull request Dec 5, 2019
@Mark-SimulacrumMark-Simulacrum removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Dec 5, 2019
bors added a commit that referenced this pull request Dec 7, 2019
[beta] backports
This pull request backports the following pull requests, which have all been beta-accepted by the
compiler team.
* Handle non_exhaustive in borrow checking #66722
* Do not ICE on trait aliases with missing obligations #66392
* Do not ICE in `if` without `else` in `async fn` #66391
* Fix ICE when trying to suggest `Type<>` instead of `Type()` #66390
* Do not ICE on recovery from unmet associated type bound obligation #66388
* find_deprecation: deprecation attr may be ill-formed meta. #66381
* parser: don't use `unreachable!()` in `fn unexpected`. #66361
* Undo an assert causing an ICE until we fix the underlying problem #66250
* Do not ICE with a precision flag in formatting str and no format arguments #66093
* Fix two OOM issues related to `ConstProp` #66394
bors added a commit that referenced this pull request Dec 8, 2019
[beta] backports
This pull request backports the following pull requests, which have all been beta-accepted by the
compiler team.
* Handle non_exhaustive in borrow checking #66722
* Do not ICE on trait aliases with missing obligations #66392
* Do not ICE in `if` without `else` in `async fn` #66391
* Fix ICE when trying to suggest `Type<>` instead of `Type()` #66390
* Do not ICE on recovery from unmet associated type bound obligation #66388
* find_deprecation: deprecation attr may be ill-formed meta. #66381
* parser: don't use `unreachable!()` in `fn unexpected`. #66361
* Undo an assert causing an ICE until we fix the underlying problem #66250
* Do not ICE with a precision flag in formatting str and no format arguments #66093
* Fix two OOM issues related to `ConstProp` #66394
@Mark-SimulacrumMark-Simulacrum removed stable-accepted Accepted for backporting to the compiler in the stable channel. stable-nominated Nominated for backporting to the compiler in the stable channel. labels Dec 14, 2019
@estebank
estebank deleted the fmt-ice branch November 9, 2023 05:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.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.

fmt::Display compiler panic: len is 0 but the index is 0

8 participants

@estebank@rust-highfive@jonas-schievink@Mark-Simulacrum@Centril@bors@pnkfelix@alexcrichton