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

Fixes two elided_named_lifetimes warnings #1680

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smoelius
Copy link
Contributor

When I build Solang, I see these two warnings:

warning: elided lifetime has a name
   --> src/emit/mod.rs:375:18
    |
369 |     pub fn binary<'a>(
    |                   -- lifetime `'a` declared here
...
375 |     ) -> binary::Binary {
    |                  ^^^^^^ this elided lifetime gets resolved as `'a`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default

warning: elided lifetime has a name
   --> src/sema/builtin_structs.rs:243:59
    |
243 |     pub fn definition<'a>(&'a self, ns: &'a Namespace) -> &StructDecl {
    |                       -- lifetime `'a` declared here      ^ this elided lifetime gets resolved as `'a`

This PR addresses both of the warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants