Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/proc-macro2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.48
Choose a base ref
...
head repository: dtolnay/proc-macro2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.49
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Dec 18, 2022

  1. Opt out -Zrustdoc-scrape-examples on docs.rs

    I'd like a chance to audit all the code that rustdoc is inserting into
    the docs. Currently I am skeptical that showing proc-macro2's internal
    usages of APIs is a net benefit to the public documentation. I am also
    skeptical that quite so many examples are needed, and that they should
    be featured so prominently in comparison to handwritten docs. Lastly I
    wish there were a way to turn this behavior off on a more granular
    basis.
    dtolnay committed Dec 18, 2022

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Copy the full SHA
    6b9ee3d View commit details
  2. Release 1.0.49

    dtolnay committed Dec 18, 2022

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Copy the full SHA
    293705d View commit details
Showing with 5 additions and 2 deletions.
  1. +4 −1 Cargo.toml
  2. +1 −1 src/lib.rs
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proc-macro2"
version = "1.0.48" # remember to update html_root_url
version = "1.0.49" # remember to update html_root_url
authors = ["David Tolnay <dtolnay@gmail.com>", "Alex Crichton <alex@alexcrichton.com>"]
autobenches = false
categories = ["development-tools::procedural-macro-helpers"]
@@ -37,6 +37,9 @@ span-locations = []
# This feature no longer means anything.
nightly = []

[lib]
doc-scrape-examples = false

[workspace]
members = ["benches/bench-libproc-macro", "tests/ui"]

2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@
//! a different thread.
// Proc-macro2 types in rustdoc of other crates get linked to here.
#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.48")]
#![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.49")]
#![cfg_attr(
any(proc_macro_span, super_unstable),
feature(proc_macro_span, proc_macro_span_shrink)