Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-derive-deftly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian Jackson
rust-derive-deftly
Merge requests
!431
Desupport equals in define_derive_deftly
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Desupport equals in define_derive_deftly
incompat-equals
into
main
Overview
0
Commits
2
Pipelines
3
Changes
2
Merged
Ian Jackson
requested to merge
incompat-equals
into
main
8 months ago
Overview
0
Commits
2
Pipelines
3
Changes
2
Expand
Finishes
#80 (closed)
0
0
Merge request reports
Viewing commit
ce3d3fca
Show latest version
2 files
+
4
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ce3d3fca
Desupport equals in define_derive_deftly, require colon
· ce3d3fca
Ian Jackson
authored
8 months ago
macros/define.rs
+
4
−
1
Options
@@ -30,7 +30,10 @@ impl Parse for TemplateDefinition {
UnprocessedOptions
::
parse
(
&
input
,
OpContext
::
TemplateDefinition
)
?
;
let
la
=
input
.lookahead1
();
if
la
.peek
(
Token!
[
=
])
{
let
_equals
:
Token!
[
=
]
=
input
.parse
()
?
;
let
equals
:
Token!
[
=
]
=
input
.parse
()
?
;
return
Err
(
equals
.error
(
"You must now write `define_derive_deftly! { Template: ... }`, not `Template =`, since derive-deftly version 0.14.0"
));
}
else
if
la
.peek
(
Token!
[:])
{
let
_colon
:
Token!
[:]
=
input
.parse
()
?
;
}
else
{
Loading