Adds macro table placeholders for all unimplemented macros #2944
Annotations
4 errors
redundant closure:
src/lazy/expanded/macro_table.rs#L187
error: redundant closure
--> src/lazy/expanded/macro_table.rs:187:19
|
187 | LazyLock::new(|| MacroTable::construct_system_macro_table());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `MacroTable::construct_system_macro_table`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `-D clippy::redundant-closure` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
|
this call to `as_ref.map(...)` does nothing:
src/lazy/expanded/macro_table.rs#L85
error: this call to `as_ref.map(...)` does nothing
--> src/lazy/expanded/macro_table.rs:85:9
|
85 | self.name.as_ref().map(Clone::clone)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.name.clone()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
= note: `-D clippy::useless-asref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_asref)]`
|
redundant closure:
src/lazy/expanded/macro_table.rs#L187
error: redundant closure
--> src/lazy/expanded/macro_table.rs:187:19
|
187 | LazyLock::new(|| MacroTable::construct_system_macro_table());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace the closure with the function itself: `MacroTable::construct_system_macro_table`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure
= note: `-D clippy::redundant-closure` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_closure)]`
|
this call to `as_ref.map(...)` does nothing:
src/lazy/expanded/macro_table.rs#L85
error: this call to `as_ref.map(...)` does nothing
--> src/lazy/expanded/macro_table.rs:85:9
|
85 | self.name.as_ref().map(Clone::clone)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.name.clone()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
= note: `-D clippy::useless-asref` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_asref)]`
|