mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use rustc_macros::SessionDiagnostic;
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_unable_to_read)]
 | |
| pub(crate) struct RlinkUnableToRead {
 | |
|     pub err: std::io::Error,
 | |
| }
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_wrong_file_type)]
 | |
| pub(crate) struct RLinkWrongFileType;
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_empty_version_number)]
 | |
| pub(crate) struct RLinkEmptyVersionNumber;
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_encoding_version_mismatch)]
 | |
| pub(crate) struct RLinkEncodingVersionMismatch {
 | |
|     pub version_array: String,
 | |
|     pub rlink_version: u32,
 | |
| }
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_rustc_version_mismatch)]
 | |
| pub(crate) struct RLinkRustcVersionMismatch<'a> {
 | |
|     pub rustc_version: String,
 | |
|     pub current_version: &'a str,
 | |
| }
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::rlink_no_a_file)]
 | |
| pub(crate) struct RlinkNotAFile;
 | |
| 
 | |
| #[derive(SessionDiagnostic)]
 | |
| #[diag(driver::unpretty_dump_fail)]
 | |
| pub(crate) struct UnprettyDumpFail {
 | |
|     pub path: String,
 | |
|     pub err: String,
 | |
| }
 | 
