error: deref on an immutable reference
--> tests/debug/mod.rs:90:25
|
90 | Debug::fmt(Lite(&*self.value), formatter)
| ^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `self.value`
|
= note: `-D clippy::borrow-deref-ref` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref
error: accessing first element with `bytes.get(0)`
--> src/lit.rs:1483:23
|
1483 | let start = (*bytes.get(0)? == b'-') as usize;
| ^^^^^^^^^^^^ help: try: `bytes.first()`
|
= note: `-D clippy::get-first` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
error: two packages named `example` in this workspace:
- /git/syn/examples/lazy-static/example/Cargo.toml
- /git/syn/examples/trace-var/example/Cargo.toml
warning: lint `clippy::eval_order_dependence` has been renamed to `clippy::mixed_read_write_in_expression`
--> src/lib.rs:261:5
|
261 | clippy::eval_order_dependence,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::mixed_read_write_in_expression`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
error: this expression creates a reference which is immediately dereferenced by the compiler
--> tests/common/eq.rs:572:38
|
572 | is_escaped_literal_token(&token, unescaped) && trees.next().is_none()
| ^^^^^^ help: change this to: `token`
|
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error[E0277]: the trait bound `&rustc_ast::tokenstream::TokenTree: SpanlessEq` is not satisfied
--> tests/common/eq.rs:510:16
|
510 | if SpanlessEq::eq(&this, &other) {
| ^^^^^^^^^^^^^^ the trait `SpanlessEq` is not implemented for `&rustc_ast::tokenstream::TokenTree`
|
= help: the trait `SpanlessEq` is implemented for `rustc_ast::tokenstream::TokenTree`
error[E0271]: type mismatch resolving `<CursorRef<'_> as Iterator>::Item == rustc_ast::tokenstream::TokenTree`
--> tests/common/eq.rs:519:25
|
519 | doc_comment(*style, *symbol, &mut other_trees)
| ^^^^^^^^^^^ expected enum `rustc_ast::tokenstream::TokenTree`, found `&rustc_ast::tokenstream::TokenTree`
|
note: required by a bound in `doc_comment`
--> tests/common/eq.rs:537:31
|
534 | fn doc_comment(
| ----------- required by a bound in this
...
537 | trees: &mut impl Iterator<Item = TokenTree>,
| ^^^^^^^^^^^^^^^^ required by this bound in `doc_comment`
error[E0271]: type mismatch resolving `<CursorRef<'_> as Iterator>::Item == rustc_ast::tokenstream::TokenTree`
--> tests/common/eq.rs:522:25
|
522 | doc_comment(*style, *symbol, &mut this_trees)
| ^^^^^^^^^^^ expected enum `rustc_ast::tokenstream::TokenTree`, found `&rustc_ast::tokenstream::TokenTree`
|
note: required by a bound in `doc_comment`
--> tests/common/eq.rs:537:31
|
534 | fn doc_comment(
| ----------- required by a bound in this
...
537 | trees: &mut impl Iterator<Item = TokenTree>,
| ^^^^^^^^^^^^^^^^ required by this bound in `doc_comment`
error[E0277]: can't compare `&Symbol` with `Symbol`
--> tests/common/eq.rs:560:23
|
560 | })) if symbol == sym::doc => {}
| ^^ no implementation for `&Symbol == Symbol`
|
= help: the trait `PartialEq<Symbol>` is not implemented for `&Symbol`
= help: the trait `PartialEq` is implemented for `Symbol`
warning: unresolved link to `parse_macro_input`
--> src/error.rs:28:37
|
28 | /// When parsing macro input, the [`parse_macro_input!`] macro handles the
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
warning: unresolved link to `parse_macro_input`
--> src/parse.rs:246:13
|
246 | /// - The [`parse_macro_input!`] macro if parsing input of a procedural macro;
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
warning: unresolved link to `parse_macro_input`
--> src/error.rs:190:15
|
190 | /// The [`parse_macro_input!`] macro provides a convenient way to invoke
| ^^^^^^^^^^^^^^^^^^ no item named `parse_macro_input` in scope
|
= note: `macro_rules` named `parse_macro_input` exists in this crate, but it is not in scope at this link's location
warning: `#[doc(hidden)]` is ignored on trait impl items
--> src/parse.rs:1220:5
|
1220 | #[doc(hidden)]
| ^^^^^^^^^^^^^^ help: remove this attribute
|
= note: `#[warn(unused_attributes)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item
warning: `#[doc(hidden)]` is ignored on trait impl items
--> src/parse.rs:1236:5
|
1236 | #[doc(hidden)]
| ^^^^^^^^^^^^^^ help: remove this attribute
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: whether the impl item is `doc(hidden)` or not entirely depends on the corresponding trait item