You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For other kinds of arguments, the value is always copied out into local allocas when debug info is enabled. Something like this has should be done for by-value self arguments too.
The text was updated successfully, but these errors were encountered:
fix `single_component_path_imports` FP on `self::<import>::..`
fixesrust-lang#10549
I noticed that a couple functions in the file I was working on took `cx` as a parameter but didn't use them, so I removed that. Can revert if desired because it isn't related to my changes.
changelog: [`single_component_path_imports`] don't suggest removing import when it is used as `self::<import>::..`
See comment at: https://github.com/mozilla/rust/blob/3d1f3f4de087ccf7e30b795fbd73e054b4761c4f/src/librustc/middle/trans/debuginfo.rs#L423
The
llvm.dbg.declare
intrinsic used to describe local variables and arguments always expects an alloca as argument. For by-value self arguments, this is not always the case. Seetrans::base::copy_args_to_allocas()
: https://github.com/mozilla/rust/blob/c0b7972f7d63e4b55098797cb48949b00d3ffee7/src/librustc/middle/trans/base.rs#L1785For other kinds of arguments, the value is always copied out into local allocas when debug info is enabled. Something like this has should be done for by-value self arguments too.
The text was updated successfully, but these errors were encountered: