question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support completion for inherited methods in traits

See original GitHub issue
trait A {
    fn a(&self);
}

trait B: A {
    fn b(&self) {
        self.a(); // <-- code completion doesn't work after "self."
    }
}

struct X;

// impl A for X {
//    fn a(&self) {}
// }

impl B for X {
    fn b(&self) {
        self.a(); // <-- code completion doesn't work after "self." 
                  // However, it DOES work if you uncomment the "impl A" block.
                  // Apparently, code completion is based on "impl" blocks and not on traits?
    }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kirillkhcommented, Jan 23, 2017

Thanks for a quick fix, confirmed.

0reactions
matkladcommented, Jan 17, 2017

Is plugin version 0.1.0.1502 supposed to contain this fix? Because it’s not working for me.

No, this will be in alpha next monday.

It’s available in nightly since 0.1.0.1509-nightly: https://plugins.jetbrains.com/idea/plugin/8182-rust/31832-update

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using inherited methods from classes inside of traits does not ...
Using inherited methods from classes inside of traits does not code complete properly ; Project, PhpStorm ; Priority, Normal N ; Type, Bug...
Read more >
Show inherited trait methods and properties in outline ... - GitHub
Currently I can view inherited properties by writing $this-> in a method and scrolling through the completion suggestions, but that's pretty ...
Read more >
Traits - Manual - PHP
An inherited method from a base class is overridden by the method inserted into MyHelloWorld from the SayWorld Trait. The behavior is the...
Read more >
INHERITED TRAITS LESSON PLAN - Kesler Science
INHERITED TRAITS LESSON PLAN – A COMPLETE SCIENCE LESSON USING THE 5E METHOD OF INSTRUCTION ... At the end of this inherited traits...
Read more >
Inheritance of Traits by Offspring Follows Predictable Rules
Through his breeding experiments with pea plants, Mendel established three principles of inheritance that described the transmission of genetic traits before ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found