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
See (XFAILed) run-pass/generic-obj.rs for sample testcase. A method that takes an argument whose type is a type-parameter of its enclosing object, e.g.
obj fooer[T]() { fn foo(T t) {} }
causes rustboot to get-element-pointer on something dynamically-sized during translation. Methods returning T to work fine, on the other hand.
Issue #92 was fixed with 25a38ee, which means that the above test now compiles. But now it segfaults at runtime instead. This appears to happen when the fooer.foo()'s arguments are dropped (can be made to happen earlier if a copy on a T occurs inside of fooer.foo()). This might be a bug in calling drop/copy glue, drop/copy glue itself, in the size calculations that take place right before either one of those), or in none of the above. Needs further investigation.
Activity
froystig commentedon Jul 16, 2010
Issue #92 was fixed with 25a38ee, which means that the above test now compiles. But now it segfaults at runtime instead. This appears to happen when the
fooer.foo()'s arguments are dropped (can be made to happen earlier if a copy on a T occurs inside offooer.foo()). This might be a bug in calling drop/copy glue, drop/copy glue itself, in the size calculations that take place right before either one of those), or in none of the above. Needs further investigation.froystig commentedon Jul 26, 2010
Adjust testcase to cover issue #91, which was actually fixed back in commit f02f9cb. Closed by 1a61fb8.
Adjust testcase to cover issue rust-lang#91, which was actually fixed…
Merge pull request rust-lang#91 from oli-obk/master
Merge pull request rust-lang#91 from alexcrichton/more-constants
Merge pull request rust-lang#91 from matthewjasper/items-cleanup
Implemented feature flag support.
Fix global initialization (rust-lang#91)
[SOL] Update SBF call ABI (rust-lang#91)
update readme (rust-lang#91)
Contracts & Harnesses for `unchecked_add` (rust-lang#91)
Contracts & Harnesses for `unchecked_mul` , `unchecked_sub`, `uncheck…
[SOL] Update SBF call ABI (rust-lang#91)
[SOL] Update SBF call ABI (rust-lang#91)
Rollup merge of rust-lang#139967 - jieyouxu:auxiliary, r=wesleywiser
Unrolled build for rust-lang#139967
[SOL] Update SBF call ABI (rust-lang#91)
[SOL] Update SBF call ABI (rust-lang#91)
Rollup merge of rust-lang#148394 - jieyouxu:remark-typeid-no-layout-g…
Unrolled build for #148394
Rollup merge of rust-lang#150696 - atomic-ptr-null, r=ZuseZ4
Rollup merge of rust-lang#150094 - atomic-ptr-null, r=workingjubilee
Rollup merge of rust-lang#150094 - atomic-ptr-null, r=workingjubilee
Rollup merge of rust-lang#150736 - atomic-ptr-null, r=joboet
Rollup merge of rust-lang#150736 - atomic-ptr-null, r=joboet
Unrolled build for #150736
Merge pull request rust-lang#91 from kjeremy/ignore-idea
Auto merge of #162517 - khyperia:yeet-type-const, r=BoxyUwU
Auto merge of #162517 - khyperia:yeet-type-const, r=BoxyUwU
Auto merge of rust-lang#162517 - khyperia:yeet-type-const, r=BoxyUwU