forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#109395 - chenyukang:yukang/fix-109291, r=cj…
…gillot Fix issue when there are multiple candidates for edit_distance_with_substrings Fixes rust-lang#109291
- Loading branch information
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
println!("Custom backtrace: {}", std::backtrace::Backtrace::forced_capture()); | ||
//~^ ERROR no function or associated item name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0599]: no function or associated item named `forced_capture` found for struct `Backtrace` in the current scope | ||
--> $DIR/issue-109291.rs:2:65 | ||
| | ||
LL | println!("Custom backtrace: {}", std::backtrace::Backtrace::forced_capture()); | ||
| ^^^^^^^^^^^^^^ | ||
| | | ||
| function or associated item not found in `Backtrace` | ||
| help: there is an associated function with a similar name: `force_capture` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0599`. |