mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[glsl-in] Compile tests without codespan
This commit is contained in:
committed by
Dzmitry Malyshau
parent
8aae069f22
commit
60bd9ec884
@@ -25,10 +25,13 @@ use std::ops::Range;
|
||||
///
|
||||
/// ```rust
|
||||
/// # use naga::front::glsl::SourceMetadata;
|
||||
/// # #[cfg(feature = "codespan_reporting")]
|
||||
/// # {
|
||||
/// use codespan_reporting::diagnostic::Label;
|
||||
/// # let file = ();
|
||||
/// # let meta = SourceMetadata::default();
|
||||
/// let label = Label::primary(file, meta);
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// # Notes
|
||||
|
||||
Reference in New Issue
Block a user