-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimum implementation for propagating macro errors (#42)
- Loading branch information
1 parent
479fdd0
commit fee0431
Showing
10 changed files
with
142 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ impl SavvyFn { | |
} | ||
), | ||
}; | ||
|
||
out | ||
} | ||
|
||
|
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 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 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use savvy_macro::savvy; | ||
|
||
#[savvy] | ||
fn foo_ref(&x: i32) -> savvy::Result<()> {} | ||
|
||
#[savvy] | ||
fn foo_mut_ref(&mut x: i32) -> savvy::Result<()> {} | ||
|
||
#[savvy] | ||
fn foo_unsupported1(x: usize) -> savvy::Result<()> {} | ||
|
||
#[savvy] | ||
fn foo_no_return_type(x: i32) {} | ||
|
||
#[savvy] | ||
fn foo_wrong_return_type(x: i32) -> i32 {} | ||
|
||
struct Foo; | ||
|
||
#[savvy] | ||
impl Foo { | ||
fn foo_self(&self) -> Self {} | ||
} | ||
|
||
fn main() {} |
Oops, something went wrong.