forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record
tcx.def_span
instead of item.span
in crate metadata
This was missed in PR rust-lang#75465. As a result, a few places have been using the full body span of functions, instead of just the header span.
- Loading branch information
Showing
7 changed files
with
20 additions
and
42 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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Def site: $DIR/auxiliary/make-macro.rs:7:9: 16:10 (#4) | ||
Def site: $DIR/auxiliary/make-macro.rs:7:9: 7:56 (#4) | ||
Input: TokenStream [] | ||
Respanned: TokenStream [] |
20 changes: 4 additions & 16 deletions
20
src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr
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 |
---|---|---|
@@ -1,26 +1,14 @@ | ||
error: reached the recursion limit while instantiating `drop_in_place::<S<fn(fn(fn(fn(fn...)))))))))))))))))))))))))))))>))` | ||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL | ||
| | ||
LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { | ||
LL | | // Code here does not matter - this is replaced by the | ||
LL | | // real drop glue by the compiler. | ||
LL | | | ||
LL | | // SAFETY: see comment above | ||
LL | | unsafe { drop_in_place(to_drop) } | ||
LL | | } | ||
| |_^ | ||
LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
note: `drop_in_place` defined here | ||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL | ||
| | ||
LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { | ||
LL | | // Code here does not matter - this is replaced by the | ||
LL | | // real drop glue by the compiler. | ||
LL | | | ||
LL | | // SAFETY: see comment above | ||
LL | | unsafe { drop_in_place(to_drop) } | ||
LL | | } | ||
| |_^ | ||
LL | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
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