• Robin Freyler's avatar
    Check namespace argument is identifier (#931) · 41b0a1c0
    Robin Freyler authored
    * check that argument in #[ink(namespace = "argument")] is a Rust identifier
    
    * add UI tests for #[ink(namespace = "..")] ink! property
    
    # Conflicts:
    #	crates/lang/macro/tests/compile_tests.rs
    #	crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.rs
    #	crates/lang/macro/tests/ui/fail/N-01-namespace-invalid-identifier.stderr
    #	crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.rs
    #	crates/lang/macro/tests/ui/fail/N-02-namespace-invalid-type.stderr
    #	crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.rs
    #	crates/lang/macro/tests/ui/fail/N-03-namespace-missing-argument.stderr
    
    * fix error message for non-identifier namespace argument
    41b0a1c0