Landing: 1405d5fe435c

Project / Subsystem

gcc / gccrs

Date

2026-06-22

Author

Philip Herron

Commit

1405d5fe435c108b972f7dc75719f651564fa063

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
commit_hash
1405d5fe435c108b972f7dc75719f651564fa063
source_type
github
headline
gccrs: Allow bidirectional inference on call expressions
tldr
Type inference for function calls now considers expected return types, aiding in complex scenarios like 'try'.
author
Philip Herron
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gccrs
  • type inference
  • Rust
discussion_id_link
bugzilla_pr
date
2026-06-22T00:00:00.000Z

GCC’s Rust compiler (gccrs) now supports bidirectional type inference for function call expressions. This enhancement is crucial for scenarios like the ? operator (try), where the expected return type of the surrounding block must constrain the type inference of the call.