From ea97e9850b7388b9bd7d43cfaedddfa06af395ff Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 7 Oct 2016 14:54:42 +0200 Subject: [PATCH] Blind attempt to fix #13626 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error message was: ``` error: unknown character escape: d --> C:\projects\servo\target\debug\build\style-9b556a6c7bb4f044\out/properties.rs:44:55 | 44 | #[path="C:/projects/servo/components/style/properties\declaration_block.rs"] | ``` Use `repr()` to get a Python string literal (whose character escaping is compatible enough with Rust’s) and `[1:-1]` to remove the single quotes. --- components/style/properties/properties.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index bcc7a6e34178..49fa22055dfa 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -44,7 +44,7 @@ pub use self::declaration_block::*; import os.path %> -#[path="${os.path.join(os.path.dirname(__file__), 'declaration_block.rs')}"] +#[path="${repr(os.path.join(os.path.dirname(__file__), 'declaration_block.rs'))[1:-1]}"] pub mod declaration_block; pub mod longhands {