Skip to content

Commit

Permalink
Stabilize the panic_col feature
Browse files Browse the repository at this point in the history
I've added the panic_col feature in PR rust-lang#42938.
Now it's time to stabilize it!
Closes rust-lang#42939.
  • Loading branch information
est31 committed Jan 10, 2018
1 parent 61452e5 commit a8556d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libstd/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ impl<'a> Location<'a> {
/// # Examples
///
/// ```should_panic
/// #![feature(panic_col)]
/// use std::panic;
///
/// panic::set_hook(Box::new(|panic_info| {
Expand All @@ -329,7 +328,7 @@ impl<'a> Location<'a> {
///
/// panic!("Normal panic");
/// ```
#[unstable(feature = "panic_col", reason = "recently added", issue = "42939")]
#[stable(feature = "panic_col", since = "1.24")]
pub fn column(&self) -> u32 {
self.col
}
Expand Down

0 comments on commit a8556d7

Please sign in to comment.