Skip to content

Rollup of 9 pull requests #131797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Oct 16, 2024
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
73fc00f
Delay ambiguous intra-doc link resolution after `Cache` has been popu…
GuillaumeGomez Oct 14, 2024
d540e72
Add regression tests for #130233
GuillaumeGomez Oct 14, 2024
918dc38
Combine impl_int and impl_uint
zlfn Oct 15, 2024
0637517
Rename debug! macro to impl_Debug!
zlfn Oct 15, 2024
99af761
Refactor `floating` macro and nofloat panic message
zlfn Oct 15, 2024
2b9e41c
Improve documentation for intra-doc links computation
GuillaumeGomez Oct 14, 2024
10f2395
Remove `AmbiguousLinks::disambiguator`
GuillaumeGomez Oct 15, 2024
dca646a
Rewrite for<..> async correctly
compiler-errors Oct 13, 2024
4886e9a
Unify secondary_span and swap_secondary_and_primary
compiler-errors Oct 15, 2024
b4e9aad
Rename can_coerce to may_coerce
compiler-errors Oct 15, 2024
e3eba2d
Don't structurally resolve in may_coerce
compiler-errors Oct 15, 2024
9070aba
Structurally resolve in may_coerce
compiler-errors Oct 15, 2024
c773098
Don't check unsize goal in MIR validation when opaques remain
compiler-errors Sep 28, 2024
476ea45
Emscripten: Xfail backtrace ui tests
hoodmane Oct 16, 2024
89ea9e4
Fix trivially_copy_pass_by_ref in stable_mir
practicalrs Oct 16, 2024
a10a449
Fix needless_lifetimes in stable_mir
practicalrs Oct 16, 2024
b6a085a
Rollup merge of #130989 - compiler-errors:unsize-opaque, r=estebank
matthiaskrgr Oct 16, 2024
950fb62
Rollup merge of #131657 - compiler-errors:rustfmt-modifiers, r=ytmimi
matthiaskrgr Oct 16, 2024
87c31fe
Rollup merge of #131691 - GuillaumeGomez:intra-doc-link-filter-out-2,…
matthiaskrgr Oct 16, 2024
82952da
Rollup merge of #131730 - zlfn:master, r=tgross35
matthiaskrgr Oct 16, 2024
3b8fd5f
Rollup merge of #131751 - compiler-errors:structurally-resolve, r=lcnr
matthiaskrgr Oct 16, 2024
80cbc6d
Rollup merge of #131753 - compiler-errors:swap-secondary, r=jieyouxu
matthiaskrgr Oct 16, 2024
c8ec8e6
Rollup merge of #131776 - hoodmane:emscripten-xfail-backtrace-tests, …
matthiaskrgr Oct 16, 2024
ac6353e
Rollup merge of #131777 - practicalrs:fix_trivially_copy_pass_by_ref,…
matthiaskrgr Oct 16, 2024
50e93bc
Rollup merge of #131778 - practicalrs:fix_needless_lifetimes, r=jieyouxu
matthiaskrgr Oct 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/stable_mir/src/mir/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ pub struct PlaceRef<'a> {
pub projection: &'a [ProjectionElem],
}

impl<'a> PlaceRef<'a> {
impl PlaceRef<'_> {
/// Get the type of this place.
pub fn ty(&self, locals: &[LocalDecl]) -> Result<Ty, Error> {
self.projection.iter().fold(Ok(locals[self.local].ty), |place_ty, elem| elem.ty(place_ty?))
Expand Down
Loading