├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── src └── lib.rs └── tests ├── compile_fail ├── call-eq.rs ├── call-eq.stderr ├── call-path.rs ├── call-path.stderr ├── call-str.rs ├── call-str.stderr ├── delegate-empty.rs ├── delegate-empty.stderr ├── delegate-extern.rs ├── delegate-extern.stderr ├── delegate-struct.rs ├── delegate-struct.stderr ├── duplicate-call.rs ├── duplicate-call.stderr ├── duplicate-into.rs ├── duplicate-into.stderr ├── fn-arg-empty.rs ├── fn-arg-empty.stderr ├── fn-arg-no-self.rs ├── fn-arg-no-self.stderr ├── into-extra-eq.rs ├── into-extra-eq.stderr ├── into-extra-parens.rs ├── into-extra-parens.stderr ├── invalid-impl-cfg.rs ├── invalid-impl-cfg.stderr ├── invalid-impl.rs ├── invalid-impl.stderr ├── non-ident-arg.rs └── non-ident-arg.stderr ├── compile_test.rs └── pass ├── custom-self-type.rs ├── default-return.rs ├── fn-call.rs ├── fn-inline-attr.rs ├── fn-into.rs ├── fn-plain.rs ├── impl-call.rs ├── impl-cfg.rs ├── impl-constraint.rs ├── impl-generic.rs ├── impl-in-macro.rs ├── impl-into.rs ├── impl-refcell.rs ├── impl-struct-field.rs ├── impl-trait.rs └── impl-tuple-like.rs /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [upsuper] 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/README.md -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/src/lib.rs -------------------------------------------------------------------------------- /tests/compile_fail/call-eq.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-eq.rs -------------------------------------------------------------------------------- /tests/compile_fail/call-eq.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-eq.stderr -------------------------------------------------------------------------------- /tests/compile_fail/call-path.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-path.rs -------------------------------------------------------------------------------- /tests/compile_fail/call-path.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-path.stderr -------------------------------------------------------------------------------- /tests/compile_fail/call-str.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-str.rs -------------------------------------------------------------------------------- /tests/compile_fail/call-str.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/call-str.stderr -------------------------------------------------------------------------------- /tests/compile_fail/delegate-empty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-empty.rs -------------------------------------------------------------------------------- /tests/compile_fail/delegate-empty.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-empty.stderr -------------------------------------------------------------------------------- /tests/compile_fail/delegate-extern.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-extern.rs -------------------------------------------------------------------------------- /tests/compile_fail/delegate-extern.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-extern.stderr -------------------------------------------------------------------------------- /tests/compile_fail/delegate-struct.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-struct.rs -------------------------------------------------------------------------------- /tests/compile_fail/delegate-struct.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/delegate-struct.stderr -------------------------------------------------------------------------------- /tests/compile_fail/duplicate-call.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/duplicate-call.rs -------------------------------------------------------------------------------- /tests/compile_fail/duplicate-call.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/duplicate-call.stderr -------------------------------------------------------------------------------- /tests/compile_fail/duplicate-into.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/duplicate-into.rs -------------------------------------------------------------------------------- /tests/compile_fail/duplicate-into.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/duplicate-into.stderr -------------------------------------------------------------------------------- /tests/compile_fail/fn-arg-empty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/fn-arg-empty.rs -------------------------------------------------------------------------------- /tests/compile_fail/fn-arg-empty.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/fn-arg-empty.stderr -------------------------------------------------------------------------------- /tests/compile_fail/fn-arg-no-self.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/fn-arg-no-self.rs -------------------------------------------------------------------------------- /tests/compile_fail/fn-arg-no-self.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/fn-arg-no-self.stderr -------------------------------------------------------------------------------- /tests/compile_fail/into-extra-eq.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/into-extra-eq.rs -------------------------------------------------------------------------------- /tests/compile_fail/into-extra-eq.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/into-extra-eq.stderr -------------------------------------------------------------------------------- /tests/compile_fail/into-extra-parens.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/into-extra-parens.rs -------------------------------------------------------------------------------- /tests/compile_fail/into-extra-parens.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/into-extra-parens.stderr -------------------------------------------------------------------------------- /tests/compile_fail/invalid-impl-cfg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/invalid-impl-cfg.rs -------------------------------------------------------------------------------- /tests/compile_fail/invalid-impl-cfg.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/invalid-impl-cfg.stderr -------------------------------------------------------------------------------- /tests/compile_fail/invalid-impl.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/invalid-impl.rs -------------------------------------------------------------------------------- /tests/compile_fail/invalid-impl.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/invalid-impl.stderr -------------------------------------------------------------------------------- /tests/compile_fail/non-ident-arg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/non-ident-arg.rs -------------------------------------------------------------------------------- /tests/compile_fail/non-ident-arg.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_fail/non-ident-arg.stderr -------------------------------------------------------------------------------- /tests/compile_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/compile_test.rs -------------------------------------------------------------------------------- /tests/pass/custom-self-type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/custom-self-type.rs -------------------------------------------------------------------------------- /tests/pass/default-return.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/default-return.rs -------------------------------------------------------------------------------- /tests/pass/fn-call.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/fn-call.rs -------------------------------------------------------------------------------- /tests/pass/fn-inline-attr.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/fn-inline-attr.rs -------------------------------------------------------------------------------- /tests/pass/fn-into.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/fn-into.rs -------------------------------------------------------------------------------- /tests/pass/fn-plain.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/fn-plain.rs -------------------------------------------------------------------------------- /tests/pass/impl-call.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-call.rs -------------------------------------------------------------------------------- /tests/pass/impl-cfg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-cfg.rs -------------------------------------------------------------------------------- /tests/pass/impl-constraint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-constraint.rs -------------------------------------------------------------------------------- /tests/pass/impl-generic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-generic.rs -------------------------------------------------------------------------------- /tests/pass/impl-in-macro.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-in-macro.rs -------------------------------------------------------------------------------- /tests/pass/impl-into.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-into.rs -------------------------------------------------------------------------------- /tests/pass/impl-refcell.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-refcell.rs -------------------------------------------------------------------------------- /tests/pass/impl-struct-field.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-struct-field.rs -------------------------------------------------------------------------------- /tests/pass/impl-trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-trait.rs -------------------------------------------------------------------------------- /tests/pass/impl-tuple-like.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/upsuper/delegate-attr/HEAD/tests/pass/impl-tuple-like.rs --------------------------------------------------------------------------------