-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Fix handling of no_std targets in doc::Std
step
#143615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8a195ef
8d0c55c
5880a31
d6bc881
566dc98
6c38d38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,8 @@ pub struct StepMetadata { | |
target: TargetSelection, | ||
built_by: Option<Compiler>, | ||
stage: Option<u32>, | ||
/// Additional opaque string printed in the metadata | ||
metadata: Option<String>, | ||
Comment on lines
+149
to
+150
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remark: I'm not so fussed about this, but maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metadata is a bit silly name here, but I just wanted this to be an opaque string that steps could just use as additional snapshot data. |
||
} | ||
|
||
impl StepMetadata { | ||
|
@@ -170,7 +172,7 @@ impl StepMetadata { | |
} | ||
|
||
fn new(name: &'static str, target: TargetSelection, kind: Kind) -> Self { | ||
Self { name, kind, target, built_by: None, stage: None } | ||
Self { name, kind, target, built_by: None, stage: None, metadata: None } | ||
} | ||
|
||
pub fn built_by(mut self, compiler: Compiler) -> Self { | ||
|
@@ -183,6 +185,11 @@ impl StepMetadata { | |
self | ||
} | ||
|
||
pub fn with_metadata(mut self, metadata: String) -> Self { | ||
self.metadata = Some(metadata); | ||
self | ||
} | ||
|
||
pub fn get_stage(&self) -> Option<u32> { | ||
self.stage.or(self | ||
.built_by | ||
|
Uh oh!
There was an error while loading. Please reload this page.