Skip to content

0.195.2 failed to build against rust 1.83.0 #5515

@chenrui333

Description

@chenrui333

While upgrading rust to 1.83.0, we found some regression build failure as:

     Compiling flux-core v0.154.0 (/private/tmp/flux-20241128-36971-boya0m/libflux/flux-core)
  error: elided lifetime has a name
     --> flux-core/src/ast/walk/mod.rs:183:47
      |
  181 | impl<'a> Node<'a> {
      |      -- lifetime `'a` declared here
  182 |     #[allow(missing_docs)]
  183 |     pub fn from_expr(expr: &'a Expression) -> Node {
      |                                               ^^^^ this elided lifetime gets resolved as `'a`
      |
  note: the lint level is defined here
     --> flux-core/src/lib.rs:1:38
      |
  1   | #![cfg_attr(feature = "strict", deny(warnings, missing_docs))]
      |                                      ^^^^^^^^
      = note: `#[deny(elided_named_lifetimes)]` implied by `#[deny(warnings)]`
  
  error: elided lifetime has a name
    --> flux-core/src/parser/mod.rs:44:37
     |
  42 | impl<'input> Parser<'input> {
     |      ------ lifetime `'input` declared here
  43 |     /// Instantiates a new parser with the given string as input.
  44 |     pub fn new(src: &'input str) -> Parser {
     |                                     ^^^^^^ this elided lifetime gets resolved as `'input`
  
  error: could not compile `flux-core` (lib) due to 2 previous errors

relates to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions