Skip to content

Rollup of 9 pull requests #140315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c5c9362
Stabilize proc_macro::Span::{start, end, line, column}.
m-ou-se Apr 15, 2025
3536324
Fix detection of `main` function if there are expressions around it
GuillaumeGomez Apr 23, 2025
81438c0
Add regression ui test for #140162 and for #139651
GuillaumeGomez Apr 23, 2025
2afb117
feat: Add XtensaAsmPrinter
SergioGasquez Apr 24, 2025
c07054b
Retry if creating temp fails with access denied
ChrisDenton Apr 20, 2025
f072d30
resolved conflict
Kivooeo Apr 25, 2025
009db53
handle specialization in the new trait solver
lcnr Apr 25, 2025
31c8d10
Track per-obligation recursion depth only if there is inference
compiler-errors Apr 25, 2025
ee9bdca
add regression test
lcnr Apr 25, 2025
3ededc1
Improve code
GuillaumeGomez Apr 25, 2025
3ef98a5
If there is a `;` alone, we consider that the doctest needs to be put…
GuillaumeGomez Apr 25, 2025
1862feb
Update `extern` docs for Rust 2024 and add safety remarks
t5kd Apr 23, 2025
8a67b2c
Rollup merge of #139865 - m-ou-se:stabilize-proc-macro-span-location,…
matthiaskrgr Apr 25, 2025
aa2d433
Rollup merge of #140086 - ChrisDenton:backoff, r=petrochenkov
matthiaskrgr Apr 25, 2025
99f3794
Rollup merge of #140216 - t5kd:master, r=tgross35
matthiaskrgr Apr 25, 2025
a67fc12
Rollup merge of #140220 - GuillaumeGomez:doctest-main-wrapping, r=fmease
matthiaskrgr Apr 25, 2025
3493249
Rollup merge of #140253 - SergioGasquez:feat/xtensa-asm-printer, r=cu…
matthiaskrgr Apr 25, 2025
9596480
Rollup merge of #140272 - Kivooeo:new-fix-four, r=est31
matthiaskrgr Apr 25, 2025
8dbe15c
Rollup merge of #140305 - compiler-errors:coerce-loop, r=lcnr
matthiaskrgr Apr 25, 2025
41cf18c
Rollup merge of #140306 - lcnr:specialization-new, r=compiler-errors
matthiaskrgr Apr 25, 2025
c007219
Rollup merge of #140308 - lcnr:add-ui-test, r=compiler-errors
matthiaskrgr Apr 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Stabilize proc_macro::Span::{start, end, line, column}.
  • Loading branch information
m-ou-se committed Apr 15, 2025
commit c5c93626a08f191549fa08c52f1617ac5d2b62b5
8 changes: 4 additions & 4 deletions library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,29 +513,29 @@ impl Span {
}

/// Creates an empty span pointing to directly before this span.
#[unstable(feature = "proc_macro_span", issue = "54725")]
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
pub fn start(&self) -> Span {
Span(self.0.start())
}

/// Creates an empty span pointing to directly after this span.
#[unstable(feature = "proc_macro_span", issue = "54725")]
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
pub fn end(&self) -> Span {
Span(self.0.end())
}

/// The one-indexed line of the source file where the span starts.
///
/// To obtain the line of the span's end, use `span.end().line()`.
#[unstable(feature = "proc_macro_span", issue = "54725")]
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
pub fn line(&self) -> usize {
self.0.line()
}

/// The one-indexed column of the source file where the span starts.
///
/// To obtain the column of the span's end, use `span.end().column()`.
#[unstable(feature = "proc_macro_span", issue = "54725")]
#[stable(feature = "proc_macro_span_location", since = "CURRENT_RUSTC_VERSION")]
pub fn column(&self) -> usize {
self.0.column()
}
Expand Down
Loading