EmbarkStudios / mirror-mirror

🪞 Powerful reflection library for Rust
Apache License 2.0
79 stars 2 forks source link

Fully qualify `FromReflect` in generated code #107

Closed davidpdrsn closed 1 year ago

davidpdrsn commented 1 year ago

Checklist

Description of Changes

If a type has another method called from_reflect and you had #[derive(Reflect)] on that you'd get this error:

error[E0034]: multiple applicable items in scope
   --> sandbox/t3/sandbox-wip/src/behaviors/aspect_reflection_test.rs:50:5
    |
50  |     Reflect,
    |     ^^^^^^^ multiple `from_reflect` found
    |

This fixes that by fully qualifying the call.