Skip to content

Commit

Permalink
Auto merge of rust-lang#132854 - RalfJung:query-key-limit, r=compiler…
Browse files Browse the repository at this point in the history
…-errors

query/plumbing: adjust comment to reality

The limit for the query key size got changed recently in rust-lang@f51ec11 but the comment was not updated.

Though maybe it is time to intern `CanonicalTypeOpAscribeUserTypeGoal` rather than copying it everywhere?

r? `@lcnr`
  • Loading branch information
bors committed Nov 11, 2024
2 parents fbcdd72 + c8058c8 commit 3a258d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/query/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ macro_rules! define_callbacks {

pub type Storage<'tcx> = <$($K)* as keys::Key>::Cache<Erase<$V>>;

// Ensure that keys grow no larger than 72 bytes by accident.
// Ensure that keys grow no larger than 80 bytes by accident.
// Increase this limit if necessary, but do try to keep the size low if possible
#[cfg(target_pointer_width = "64")]
const _: () = {
Expand Down

0 comments on commit 3a258d1

Please sign in to comment.