Skip to main content

ConversionWarning

Enum ConversionWarning 

Source
#[non_exhaustive]
pub enum ConversionWarning {
Show 14 variants EmbeddedDebugData { reason: Box<str>, }, Debuginfod { endpoint: Option<Box<str>>, reason: Box<str>, }, SplitDwarfUnavailable { dwo_id: u64, reasons: Box<[Box<str>]>, }, NoInlineRecords, MalformedRanges { stopped: bool, reason: Box<str>, }, RejectedRange { range: AddressRange, }, InvalidStatementSequence { die_offset: u64, sequence_offset: u64, }, LineSequenceMismatch { sequences: usize, offsets: usize, }, MissingLineFile { address: u64, index: u64, }, UnrepresentableLine { address: u64, line: u64, }, MissingInlineCallFile { die_offset: u64, index: u64, }, InvalidInlineCallLine { die_offset: u64, line: u64, }, InvalidDeclarationFile { die_offset: u64, index: u64, }, InvalidDeclarationLine { die_offset: u64, line: u64, },
}
Available on crate feature convert only.
Expand description

Non-fatal issue observed while importing ELF or DWARF data.

A warning means some input was skipped and conversion continued, so a report carrying warnings is still usable. Anything that makes the whole conversion impossible is an Error instead.

All variants implement Display, so {warning} is enough for a log line. Matching specific variants needs a fallback arm.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

EmbeddedDebugData

Embedded mini-debug data was present but unusable.

Fields

§reason: Box<str>

Rejection reason.

§

Debuginfod

A debuginfod request or cache operation failed.

Fields

§endpoint: Option<Box<str>>

Server or cache endpoint involved, when known.

§reason: Box<str>

Failure description.

§

SplitDwarfUnavailable

Neither an individual DWO nor a packaged DWP supplied a skeleton unit.

Fields

§dwo_id: u64

Split-DWARF unit identifier.

§reasons: Box<[Box<str>]>

Failures encountered while trying each source.

§

NoInlineRecords

Inline import was enabled but produced no valid inline records.

§

MalformedRanges

A DWARF range list contained malformed data.

Fields

§stopped: bool

Whether parsing had to stop rather than skip one range.

§reason: Box<str>

Parser diagnostic.

§

RejectedRange

A DWARF range was invalid or outside live executable code.

Fields

§range: AddressRange

Rejected virtual-address range.

§

InvalidStatementSequence

DW_AT_LLVM_stmt_sequence did not identify a valid line sequence.

Fields

§die_offset: u64

Absolute debug-info offset of the function DIE.

§sequence_offset: u64

Referenced line-program offset.

§

LineSequenceMismatch

Executed line sequences could not be paired with scanned offsets.

Fields

§sequences: usize

Number of executed line sequences.

§offsets: usize

Number of scanned sequence offsets.

§

MissingLineFile

A line row referenced a missing file-table entry.

Fields

§address: u64

Row address.

§index: u64

Missing DWARF file index.

§

UnrepresentableLine

A line number could not fit the GSYM u32 field.

Fields

§address: u64

Row address.

§line: u64

Original DWARF line number.

§

MissingInlineCallFile

An inline DIE referenced a missing call-site file.

Fields

§die_offset: u64

Absolute debug-info offset of the inline DIE.

§index: u64

Missing DWARF file index.

§

InvalidInlineCallLine

An inline call line could not fit the GSYM u32 field.

Fields

§die_offset: u64

Absolute debug-info offset of the inline DIE.

§line: u64

Original DWARF line number.

§

InvalidDeclarationFile

A declaration location referenced a missing file.

Fields

§die_offset: u64

Absolute debug-info offset of the function DIE.

§index: u64

Missing DWARF file index.

§

InvalidDeclarationLine

A declaration line could not fit the GSYM u32 field.

Fields

§die_offset: u64

Absolute debug-info offset of the function DIE.

§line: u64

Original DWARF line number.

Trait Implementations§

Source§

impl Clone for ConversionWarning

Source§

fn clone(&self) -> ConversionWarning

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ConversionWarning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for ConversionWarning

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ConversionWarning

Source§

impl PartialEq for ConversionWarning

Source§

fn eq(&self, other: &ConversionWarning) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ConversionWarning

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more