提交 a8556d77 编写于 作者: E est31

Stabilize the panic_col feature

I've added the panic_col feature in PR #42938.
Now it's time to stabilize it!
Closes #42939.
上级 61452e50
...@@ -316,7 +316,6 @@ pub fn line(&self) -> u32 { ...@@ -316,7 +316,6 @@ pub fn line(&self) -> u32 {
/// # Examples /// # Examples
/// ///
/// ```should_panic /// ```should_panic
/// #![feature(panic_col)]
/// use std::panic; /// use std::panic;
/// ///
/// panic::set_hook(Box::new(|panic_info| { /// panic::set_hook(Box::new(|panic_info| {
...@@ -329,7 +328,7 @@ pub fn line(&self) -> u32 { ...@@ -329,7 +328,7 @@ pub fn line(&self) -> u32 {
/// ///
/// panic!("Normal panic"); /// panic!("Normal panic");
/// ``` /// ```
#[unstable(feature = "panic_col", reason = "recently added", issue = "42939")] #[stable(feature = "panic_col", since = "1.24")]
pub fn column(&self) -> u32 { pub fn column(&self) -> u32 {
self.col self.col
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册