-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from dtolnay/spaninfer
Help span argument of quote_spanned get inferred to Span
- Loading branch information
Showing
6 changed files
with
73 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
error[E0277]: the trait bound `&str: IntoSpan` is not satisfied | ||
--> tests/ui/wrong-type-span.rs:6:20 | ||
error[E0599]: no method named `__into_span` found for struct `__private::get_span::GetSpan<&str>` in the current scope | ||
--> tests/ui/wrong-type-span.rs:6:5 | ||
| | ||
6 | quote_spanned!(span=> #x); | ||
| ---------------^^^^------ | ||
| | | | ||
| | the trait `IntoSpan` is not implemented for `&str` | ||
| required by a bound introduced by this call | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `GetSpan<&str>` | ||
| | ||
= help: the following other types implement trait `IntoSpan`: | ||
Span | ||
proc_macro2::extra::DelimSpan | ||
= note: the method was found for | ||
- `__private::get_span::GetSpan<Span>` | ||
= note: this error originates in the macro `quote_spanned` (in Nightly builds, run with -Z macro-backtrace for more info) |