Skip to content

Commit 01fad43

Browse files
committed
Rename include files to support rust-analyzer
Rust analyzer can only see files then end in `.rs`, so it was failing to load these, resulting in false errors in vscode (and other rust-analyzer based IDEs). rust-lang/rust-analyzer#10178 Signed-off-by: Greg Morenz <greg-morenz@droid.cafe>
1 parent 963d88a commit 01fad43

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
File renamed without changes.
File renamed without changes.

mozjs/src/rust.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1209,8 +1209,8 @@ pub mod wrappers {
12091209
};
12101210
use crate::jsapi::{MallocSizeOf, ObjectOpResult, ObjectPrivateVisitor, TabSizes};
12111211
use crate::jsapi::{SavedFrameResult, SavedFrameSelfHosted};
1212-
include!("jsapi_wrappers.in");
1213-
include!("glue_wrappers.in");
1212+
include!("jsapi_wrappers.in.rs");
1213+
include!("glue_wrappers.in.rs");
12141214
}
12151215

12161216
/** Wrappers for JSAPI methods that accept lifetimed Handle and MutableHandle arguments.
@@ -1357,6 +1357,6 @@ pub mod jsapi_wrapped {
13571357
};
13581358
use crate::jsapi::{MallocSizeOf, ObjectOpResult, ObjectPrivateVisitor, TabSizes};
13591359
use crate::jsapi::{SavedFrameResult, SavedFrameSelfHosted};
1360-
include!("jsapi_wrappers.in");
1361-
include!("glue_wrappers.in");
1360+
include!("jsapi_wrappers.in.rs");
1361+
include!("glue_wrappers.in.rs");
13621362
}

0 commit comments

Comments
 (0)