Skip to content
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

no auto-completion for associated constants/functions on primitive types #7642

Closed
japaric opened this issue Feb 11, 2021 · 1 comment · Fixed by #7644
Closed

no auto-completion for associated constants/functions on primitive types #7642

japaric opened this issue Feb 11, 2021 · 1 comment · Fixed by #7644
Labels
A-completion autocompletion S-actionable Someone could pick this issue up and work on it right now

Comments

@japaric
Copy link
Member

japaric commented Feb 11, 2021

the auto-completion list for this case with a primitive type is empty:

let x = i16::_;

the auto-completion list for this other case with a user-defined type does list the associated constants and functions:

struct S;
impl S {
    const A: u8 = 0;
    const B: u8 = 0;
    fn foo() {}
}
let x = S::_; // [A, B, foo]
@jonas-schievink jonas-schievink added A-completion autocompletion S-actionable Someone could pick this issue up and work on it right now labels Feb 11, 2021
@jonas-schievink
Copy link
Contributor

We don't complete functions either

bors bot added a commit that referenced this issue Feb 12, 2021
7644: Primitive completion r=jonas-schievink a=jonas-schievink

Fixes #7642

7648: fix nightly warning `legacy_derive_helpers` r=jonas-schievink a=peddermaster2

With a recent nightly (e.g. 2021-02-10) a warning comes up. This PR reorders the attributes to fix the warning.

See rust-lang/rust#79202

Co-authored-by: Jonas Schievink <[email protected]>
Co-authored-by: Peter Wischer <[email protected]>
bors bot added a commit that referenced this issue Feb 12, 2021
7644: Primitive completion r=jonas-schievink a=jonas-schievink

Fixes #7642

Co-authored-by: Jonas Schievink <[email protected]>
@bors bors bot closed this as completed in dee5aba Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion autocompletion S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants