Skip to content

Commit

Permalink
Add diagnostic item to CStr
Browse files Browse the repository at this point in the history
  • Loading branch information
mgacek8 committed May 18, 2021
1 parent 25a277f commit d730cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ symbols! {
BinaryHeap,
Borrow,
C,
CStr,
CString,
Center,
Clone,
Expand Down
1 change: 1 addition & 0 deletions library/std/src/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ pub struct CString {
///
/// [`&str`]: prim@str
#[derive(Hash)]
#[cfg_attr(not(test), rustc_diagnostic_item = "CStr")]
#[stable(feature = "rust1", since = "1.0.0")]
// FIXME:
// `fn from` in `impl From<&CStr> for Box<CStr>` current implementation relies
Expand Down

0 comments on commit d730cc6

Please sign in to comment.