Replace static declaration with idiomatic const for POD type

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      While `static` compiles, it causes issues with VSCode's rust-analyzer extension the below error. Normally `static` is used for objects that require a heap allocation. `const` is the idiomatic (and equivalent) way of defining a plain-old-data (POD) type like an integer.

      ```
      thread 'Worker7' (220875) panicked at crates/hir-ty/src/next_solver/interner.rs:1133:18:
      not implemented: Unexpected alias: StaticId("FREEFLOW_BUFFER_SIZE")
      stack backtrace:
      ```

      Note that this is not a functional issue with our code, but a change to more idiomatic usage that works around an issue in the rust-analyzer extension.

            Assignee:
            Stewart Smith
            Reporter:
            Stewart Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: