rust/crates
bors[bot] 3e09dbba94
Merge #5002
5002: Fix underflow panic when doctests are at top of file r=Nashenas88 a=Nashenas88

While debugging a comment at the top of a test string, I discovered that the offset calculations could underflow and panic. This only seemed to occur in tests, I assume because it's running a debug mode. The wrapping is quickly fixed later on in release mode, which is why this seems to have gone unnoticed. The new checks ensure the value is always positive or zero.

Co-authored-by: Paul Daniel Faria <nashenas88@users.noreply.github.com>
2020-06-23 13:25:43 +00:00
..
paths Add paths::RelPath[Buf] 2020-06-22 15:03:37 +02:00
ra_arena Extract messy tree handling out of profiling code 2020-04-25 21:22:40 +02:00
ra_assists Remove RelativePathBuf from fixture 2020-06-23 00:14:44 +02:00
ra_cfg add support of feature flag for runnables #4464 2020-05-23 20:59:18 +02:00
ra_db Remove RelativePathBuf from fixture 2020-06-23 00:14:44 +02:00
ra_flycheck flycheck now uses the configured features 2020-06-09 21:47:54 +02:00
ra_fmt Introduce EffectExpr 2020-05-02 11:21:39 +02:00
ra_hir Enum variants with Self::[variant] now resolve (#4879) 2020-06-22 08:28:53 -06:00
ra_hir_def Handle bindings after @ in patterns 2020-06-21 15:19:38 +02:00
ra_hir_expand Don't guess macro expansion crate 2020-06-11 12:13:14 +02:00
ra_hir_ty Remove RelativePathBuf from fixture 2020-06-23 00:14:44 +02:00
ra_ide Merge #5002 2020-06-23 13:25:43 +00:00
ra_ide_db Add new query to stats 2020-06-19 23:17:53 +02:00
ra_mbe Reuse Vec allocations 2020-05-16 22:20:44 +02:00
ra_parser Allow attributes on expressions 2020-06-15 10:59:05 +02:00
ra_proc_macro proc_macro: add ability to log to stderr and view output in vscode 2020-04-23 01:57:02 +03:00
ra_proc_macro_srv Update test for new serde 2020-06-21 12:10:50 -04:00
ra_prof Simplify profiler impl (bubble up Option and shorten code 2020-04-26 00:55:49 +03:00
ra_project_model Accept relative paths in rust-project.json 2020-06-15 13:11:53 +02:00
ra_ssr SSR: Allow matching of whole macro calls 2020-06-23 07:42:34 +10:00
ra_syntax Merge #4962 2020-06-21 12:37:29 +00:00
ra_text_edit Formalize JoinLines protocol extension 2020-05-21 20:05:33 +02:00
ra_toolchain Simplify match 2020-05-09 22:20:11 +03:00
ra_tt Reduce reallocations in ra_tt::buffer::TokenBuffer::new_inner 2020-05-16 22:20:44 +02:00
rust-analyzer Remove RelativePathBuf from fixture 2020-06-23 00:14:44 +02:00
stdx Speedup VFS::partition 2020-06-19 15:07:32 +02:00
test_utils Remove RelativePathBuf from fixture 2020-06-23 00:14:44 +02:00
vfs Speedup VFS::partition 2020-06-19 15:07:32 +02:00