various: translation resources from cg backend
Extend `CodegenBackend` trait with a function returning the translation resources from the codegen backend, which can be added to the complete list of resources provided to the emitter. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
@@ -17,11 +17,11 @@ use rustc_span::{BytePos, FileName, Pos, Span};
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
static TEST_LOCALE_RESOURCES: &[&str] =
|
||||
&[crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE];
|
||||
|
||||
fn sess() -> ParseSess {
|
||||
ParseSess::new(TEST_LOCALE_RESOURCES, FilePathMapping::empty())
|
||||
ParseSess::new(
|
||||
vec![crate::DEFAULT_LOCALE_RESOURCE, rustc_parse::DEFAULT_LOCALE_RESOURCE],
|
||||
FilePathMapping::empty(),
|
||||
)
|
||||
}
|
||||
|
||||
/// Parses an item.
|
||||
|
||||
Reference in New Issue
Block a user